Re: bigint/bugnum library
- Posted by mattlewis (admin) Jul 13, 2013
- 1679 views
jimcbrown said...
Actually, this was a major headache and the reason I never finished my 64bit port - all kinds of weird problems showed up when this assumption is broken.
Matt did it, but once he had the proof of concept he decided things would be easier as well for an atom to be able to hold all the integral values that the integer type can hold.
The problem comes from detecting when an integer should be promoted to a double, internally. As noted, you start losing granularity after 253-1 with a normal double. We could have made 64-bit integers be smaller than that, but that didn't seem like a great idea.
Matt