Floating Point Representation
Floating Point Representation
To represent the number in floating point format, the first binary point is shifted to
the right of the first bit and the number is multiplied by the correct scaling factor
to get the same value. The number is said to be in the normalized form.
● It is important to note that the base in the scaling factor is fixed 2.
● The string of the significant digits is commonly known as mantissa.
● In the above example, we can say that,
Sign = 0
Mantissa = 1 1 1 0 1 1 0 0 1 1 0
Exponent =5
● In floating point numbers, the bias value is added to the true exponent. This
solves the problem of representation of negative exponents.
Instead of the signed exponent E, the value actually stored in the exponent field
is E' = E (Scaling factor) + bias.
● In the 32 bit floating point system (single precision), bias is 127. Hence E' = E
(scaling factor) + 127. This representation of the exponent is called the excess
127 format.
● In a single precision,the end values of E' respectively are used to indicate the
floating point values of exact zero and infinity where the values of E' are namely
the 0 and 255.
● Thus the range of E' for normal values in the single precision is 0 < E' < 255. This
means that for the representation of a floating point number in 32 bits, the actual
exponent E is in the range -126 <= E <= 127.
● The 64 bit standard representation is called a double precision representation
because it occupies two 32 bit words.
● The 64 bits are divided into three fields:
○ (Field 1) Sign = 1 bit
○ (Field 2) Exponent = 11 bit
○ (Field 3) Mantissa = 52 bits
● In the double precision format value actually stored in the exponent field is given
as E' = E + 1023
● Here, the bias value is 1023 and hence it is also called excess 1023 format.
● The end values of E' namely 0 and 2047 are used to indicate the floating point
exact values of zero and infinity, respectively.
● Thus the range of E' for normal values in double precision is 0 < E' < 2047. This
means that for 64 bit representation the actual exponent E is in the range -1022
<= E <= 1023.