Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: integer! which range?

From: sterling:rebol at: 13-Nov-2001 12:24

The trick here is that these are differnt REBOL datatypes.
>> type? 1
== integer!
>> type? 99999999999999
== decimal! As far as largest integer goes:
>> 2147483647
== 2147483647
>> 2147483647 + 1
** Math Error: Math or number overflow ** Near: 2147483647 + 1 There it is. But:
>> 2147483647.0 + 1
== 2147483648 but this is decimal! type, not an integer!. Sterling