Re: ? 2e100_000 -- a killer statement

new topic     » goto parent     » topic index » view thread      » older message » newer message
_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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu