Professional Documents
Culture Documents
REPRESENTATION
ACOE161 - Digital Lo 1
The range/accuracy problem
The range of numbers that can be
n
represented with n bits is 2
In 2s complement: from - 2n/2 to 2n/2 -1
For n=8: From 128 to +127
For n=16: From 32,768 to +32,767
Still, in many application an even larger
range is required
ACOE161 - Digital Lo 2
Real numbers
M b e
ACOE161 - Digital Lo 3
FLOATING-POINT
REPRESENTATION
Sign (S) Biased exponent (E) Unsigned normalized mantissa (M)
F (1) S M E (1) S 1.M 2 E bias
IEEE short real: 8 bits for the exponent (in Ex-
127), 23 bits for the mantissa
IEEE long real: 11 bits for the exponent, 52
bits for the mantissa
ACOE161 - Digital Lo 4
RESERVED VALUES
ACOE161 - Digital Lo 5
Examples (IEEE short real format)
Binary Normalized exponent Biased Sign, exponent, mantissa
value Binary value Exponent
(Excess -127
-1.01 -1.01 0 127 1 01111111 0100000000000000000000
ACOE161 - Digital Lo 6
Homework
Convert the following 2s complement
values to IEEE short real floating-point
representation
10011010
0110.0101
0.1111110
1100.0001
ACOE161 - Digital Lo 7