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


> Hello,
> I've tested something in the REBOL/Core-Console. But, I 
> don't understand that. Look:
> In the console, I type the following:
> testzahl: 1
> while [true] [testzahl: testzahl * 10]
> 
> An Error occured:
> ** Math Error: Math or number overflow
> 
> After that, I type "print testzahl"
> REBOL shows the following:
> 1000000000
> 
> This looks very small. So, if I type in the console simply 
> "999999999999999999999999", it works!
> 
> So, why is there such a difference? What is the biggest 
> integer!?
> cu, yogi

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.

Reply via email to