The document discusses three examples of floating point representation: 8-bit floating point with and without a hidden bit, and the IEEE 754 standard for single precision floating point numbers.
The 8-bit examples show the breakdown of the bit patterns into sign, exponent, and fraction fields. The exponent uses excess-3 notation with a range of -3 to 4. The fraction is either normalized with an implied leading 1 or uses a hidden leading 1 bit.
The IEEE 754 standard uses a 32-bit single precision format with a sign bit, 8-bit exponent with excess-127 notation having a range of -126 to 127, and a 23-bit fraction with a hidden leading 1 bit. It describes
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
56 views
Floating Point Representation Examples
The document discusses three examples of floating point representation: 8-bit floating point with and without a hidden bit, and the IEEE 754 standard for single precision floating point numbers.
The 8-bit examples show the breakdown of the bit patterns into sign, exponent, and fraction fields. The exponent uses excess-3 notation with a range of -3 to 4. The fraction is either normalized with an implied leading 1 or uses a hidden leading 1 bit.
The IEEE 754 standard uses a 32-bit single precision format with a sign bit, 8-bit exponent with excess-127 notation having a range of -126 to 127, and a 23-bit fraction with a hidden leading 1 bit. It describes
sign: 0 = plus / 1 = minus exponent: excess 3 (011) notation (range is -3 to 4) fraction: normalized so leading 1 is right of implied binary point (or binary point to left of leading 1) precision depends on exponent
sign: 0 = plus / 1 = minus exponent: excess 3 (011) notation (range is -3 to 4) fraction: hidden 1 bit to left of implied binary point (or binary point to right of leading 1) precision depends on exponent
Sign: 0 = plus / 1 = minus Exponent: excess 127 (01111111) 00000000 and 11111111 are reserved patterns Therefore exponent range is -126 .. +127 Fraction: hidden 1 bit to left of implied binary point (or binary point to right of leading 1) precision depends on exponent
5 basic types
Non-zero normalized numbers (exponents between -126 and +127) Clean zero: exponent and mantissa all 0s (note +0 and -0) Infinity: exponent = 11111111, fraction all 0s (+ and infinity) NaN (not a number): exponent = 11111111 and fraction is not all 0s Denormalized: exponent = 00000000 (-126) and fraction is actual value w/o/ hidden bit