Are all integer values perfectly represented as doubles? [duplicate]
Disclaimer (as suggested by Toby Speight): Although IEEE 754 representations are quite common, an implementation is permitted to use any other representation that satisfies the requirements of the language. The doubles are represented in the form mantissa * 2^exponent, i.e. some of the bits are used for the non-integer part of the double number. bits … Read more