A float32 is scientific notation in base 2: a sign, a power of two and 24 significant binary digits (the leading 1 is implied), packed into 32 bits. Most decimals, like 0.1, have no exact binary form, so they are rounded to the nearest float.
A float32 is scientific notation in base 2: a sign, a power of two and 24 significant binary digits (the leading 1 is implied), packed into 32 bits. Most decimals, like 0.1, have no exact binary form, so they are rounded to the nearest float.