Another trick is to use 32 bit float and just test every single number.
4 billion is something computers can handle, and it will give you pretty much all the edge cases of floating point representation.
4 billion is something computers can handle, and it will give you pretty much all the edge cases of floating point representation.
if you do need 1 mm accuracy, including in the Pacific Ocean around 180 E/W then neither float32 nor scaled 32-bit ints are enough.