Click any bit to toggle it manually
Same number, same total bits, different allocations. See how the split affects accuracy.
| Split | Binary | Stored | Error | Error % |
|---|---|---|---|---|
| 1i / 7f | 1.1100001 | 1.757813 | 0.002188 | 0.12% |
| 2i / 6f | 01.110000 | 1.75 | 0.01 | 0.57% |
| 3i / 5f | 001.11000 | 1.75 | 0.01 | 0.57% |
| 4i / 4f \u2190 | 0001.1100 | 1.75 | 0.01 | 0.57% |
| 5i / 3f | 00001.110 | 1.75 | 0.01 | 0.57% |
| 6i / 2f | 000001.11 | 1.75 | 0.01 | 0.57% |
| 7i / 1f | 0000001.1 | 1.5 | 0.26 | 14.77% |
In JavaScript: 0.1 + 0.2 = 0.30000000000000004. The number 0.1 cannot be exactly represented in binary!
A 0.1-second timing error accumulated over 100 hours, causing a 0.34-second drift that led to a failed missile interception.
This is why financial systems store cents as integers (999) instead of floating-point dollars (9.99).