Ieee 754 F P R: Loating Oint Epresentation
Ieee 754 F P R: Loating Oint Epresentation
REPRESENTATION
Alark Joshi
In binary
±1.xxxxxxx2 × 2yyyy
Types float and double in C
FLOATING POINT STANDARD
Defined by IEEE Std 754-1985
Developed in response to divergence of
representations
Portability issues for scientific code
Now almost universally adopted
Two representations
Single precision (32-bit)
Double precision (64-bit)
IEEE FLOATING-POINT FORMAT
single: 8 bits single: 23 bits
double: 11 bits double: 52 bits
S Exponent Fraction
Single: 1011111101000…00
Double: 1011111111101000…00
FLOATING-POINT EXAMPLE
What number is represented by the single-
precision float
11000000101000…00
S=1
Fraction = 01000…002
Exponent = 100000012 = 129
http://www.h-schmidt.net/FloatConverter/IEEE754.html