Floating Point Representation
Learn about the conventions behind floating point representation.
We'll cover the following
How does it work?
Just like scientific notation is an extension of the decimal point notation, floating points can be said to extend fixed point notation.
Let’s look at a number in scientific notation:
We can divide this number into three distinct parts:
- The coefficient , known as the significand or the mantissa, which can be any real number
- The power of , , which is called the exponent, and can be any (positive or negative)
- , which is the sign, and can be or .
In the decimal representation, we leveraged extra symbols like , the sign, and exponent. In binary, we need to encode all of this in a string of ones and zeroes. For this we develop some conventions of how a floating point number will be represented.
Get hands-on with 1400+ tech skills courses.