Re: Largest/smallest atom

new topic     » goto parent     » topic index » view thread      » older message » newer message
jemima said...

While I know they are about +/- 1e308, is there some way to specify the largest/smallest atom such as float64_to_atom(#FF,#FF,...})??

These are the largest and smallest magnitude atoms (and their float64 representations):

    1.7976931348623157e+308 {255,255,255,255,255,255,239,127} 
    4.9406564584124654e-324 {1,0,0,0,0,0,0,0} 

In eu 3.1, there is no way to get these short of something like a float64 conversion. In 4.0 you can to enter them in scientific notation and get full accuracy. The standard floating point scanner loses accuracy after a few digits (I don't recall exactly where).

You can look at scientific.e, which is part of euphoria for 4.0, for more info.

Matt

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

Search



Quick Links

User menu

Not signed in.

Misc Menu