Floating point numbers are implemented according to IEEE 754.
The binary representation contains a sign, exponent and mantissa (the fractional part).
Infinity, -Infinity and NaN (not a number) have specific bit representations.
Float representation:
Binary representation:
Float representation:
Binary representation: