TLDR Web Dev · QUICK LINKS
MOST INTS ARE NOT FLOATS
Summary from the TLDR Web Dev newsletter
Due to the limited precision of floating-point representations (float32 and float64), most integers (int32 and int64) cannot be represented exactly as floats, with only a small percentage (around 3.5% for 32-bit and 0.5% for 64-bit) being accurately convertible.