Floating point number (IEEE-754)

Instead of Exponent, think of a Window between two consecutive power of two integers. Instead of a Mantissa, think of an Offset within that window. - Floating point visually explained

caption

caption

But why did DEC use 8 bits for the exponent in the F and D formats? The reason is to be able to represent all important physical constants, including the Plank constant (6.626070040 × 10^-34) and the Avogradro constant (6.022140857 × 10^23) - SO

see also

Written on February 5, 2020, Last update on October 12, 2024
math float history c++