Representing integers in doubles
Can a double (of a given number of bytes, with a reasonable mantissa/exponent balance) always fully precisely hold the range of an unsigned integer of half that number of bytes? E.g. can an eight byte double fully precisely hold the range of numbers of a four byte unsigned int? What this will boil down to is if a two byte float can hold the range of a one byte unsigned int. A one byte unsigned int will of course be 0 -> 255. An IEEE754 64-bit double can represent any 32-bit integer, simply because it has 53-odd (a) bits available for precision and the 32-bit integer only needs, well, 32 :-) It