◄ Wiki / Math
2²⁴
The largest run of whole numbers a 32-bit float can count without skipping any.
A 32-bit floating-point number stores its digits in a 24-bit mantissa, so it can represent every integer exactly only up to 2²⁴ (about 16.7 million). Past that point the gaps between representable values exceed 1, so consecutive integers start rounding to the same float and counts silently go wrong. Storing large integer IDs or counters as 32-bit floats therefore fails above this limit.