Re: ? 2e100_000 -- a killer statement
- Posted by ArthurCrump Jun 26, 2013
- 1346 views
_tom said...
...
? 2e100_00 -- OK
_tom
Are you running a 64-bit Euphoria with a much bigger range of numbers? I am running 32-bit Euphoria 4.05 and ? 2e100_00 gives an answer in a reasonable time but I wouldn't say it's OK because it's the wrong answer. I get 1.412967193e+136 instead of 2e+10000; completely wrong.
Anything above about 1.8e308 gives a silly answer, sometimes with a negative exponent. For example, ?2e309 gives 6.180692095e-308
The numeric input routine should be able to detect that the number is out of range and report an error.
Arthur