Floats are actually rational numbers with denominators of power of 2.
https://en.wikipedia.org/wiki/Dyadic_rational#In_computing