Convert decimal numbers to IEEE 754 binary representation
IEEE 754 is a technical standard for floating-point arithmetic established by the Institute of Electrical and Electronics Engineers (IEEE). It defines how computers represent and manipulate decimal numbers in binary format.
IEEE 754 floating-point numbers are divided into three parts:
1 bit determining if the number is positive (0) or negative (1)
8 bits (single) or 11 bits (double) for the power of 2, using biased representation
23 bits (single) or 52 bits (double) for the significant digits
Value = (-1)sign × 2(exponent - bias) × (1 + mantissa)