4 ms·
Almost all numbers aren't 53-bit integers (or smaller) :P
by ben0x539 7y ago
Almost all numbers aren't 53-bit integers (or smaller) :P
- mark-r 7y agoSince everybody feels like getting all pedantic on me, let me clarify what I was trying to say. Most of the integers you encounter in real life will be 53 bits or less, and can be held in an IEEE-754 64-bit float without introducing any error. It is not worth introducing a separate integer type for the exceptions, particularly when the language used as the basis of the format (Javascript) does not have an integer type.