Re: bigint/bugnum library
- Posted by jimcbrown (admin) Jul 12, 2013
- 1797 views
Out of curiosity, does anyone know the highest integer value at which Eu atoms are still stable for integral amounts. I might have to write a conversion program, which deals with monetary values, for my company and I'd rather avoid having to use a bignum library, if at all possible. A Eu integer maxes out at a billion, right? So if each integral represents one cent the integer would be useful for values up to $10 million. How much higher is the limit using atoms?
Spock
It's 2^53 (or 2 to the power of 53), same as a conventional C double: http://stackoverflow.com/questions/1848700/biggest-integer-that-can-be-stored-in-a-double
Unless you are talking about a 64bit version of Euphoria, where we use long doubles (80 bits instead of 64bits for a double).