Page 1 of 1

Integer/Floating Point Ranges and Precision

Posted: Tue Jan 26, 2010 3:09 am
by BillJames
I looked in the user guide, dictionary, and searched the forums but I cannot find a discussion of number ranges or digits of precision. I understand that the language is typeless, but you would expect at least some discussion on this topic. I tried some testing on integers and was surprised to find that you can do the below:

put 2 ^ 500 into tInt

Does this mean that there is variable precision built into revolution math? It appears so.

Can the digits of precision for floating point math be set as well?

Thanks,

Bill

Re: Integer/Floating Point Ranges and Precision

Posted: Fri Jan 29, 2010 7:30 pm
by Mark
Hi BIll,

Off the top of my head, I believe that Revolution can't handle any numbers larger than 2^52 (or 2^53?). RunRev is not a scienticif/medical/military calculation tool. 2^500 does return a number, but put (2^500)-(2^500-1) returns 0 instead of 1. Apparently, such calculations make no sense in Revolution.

Best,

Mark