RE: [REBOL] integer! which range? Hi Yogi,
>> a: to-integer 2 ** 31 - 1 == 2147483647 >> a: to-integer 2 ** 31 - 1 + 1 ** Math Error: Math or number overflow >> type? 999999999999999999999999 == decimal! so if you enter a to large number, it is converted to decimal! . if you multiply two integer!, you are limited. make one 'to-decimal or use 10.0 . -volker [EMAIL PROTECTED] wrote: > > 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. > -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] with "unsubscribe" in the subject, without the quotes.
