Representation of Numbers: Dr. Arunachalam V Associate Professor, SENSE
Representation of Numbers: Dr. Arunachalam V Associate Professor, SENSE
Dr. Arunachalam V
Associate Professor, SENSE
Different assignments of 4-bit code
Fixed-point, Fixed-radix positional number
system
• If the radix (r) is positive integer then the digit set is {0,1,2,3,…, r-1}
• Each unsigned integer is represented by a digit vector of length k+l, with k
digits for the whole part and l digits for fractional part.
• …. . … =∑
• The digit set can be − , − + 1, − + 2, … , − 1, otherwise − , .
• Some examples are:
• Balanced ternary number system: r = 3, digit set [-1,1].
• Negative radix number system: radix = -r, digit set [0, r-1].
– Special case with r = -2, digit set [0,1] is called negabinary number system.
• Non-redundant signed-digit number system: digit set − , − 1 − for
radix r. A negative digit is represented with a – sign .
– r = 10 and α = 4, represent a (3 -1 5)ten representing (300 – 10 + 5 = 295)
Fixed-point, Fixed-radix positional number
system
• Some more examples are:
• Redundant signed-digit number system: digit set − , with + ≥ .
A negative digit is represented with a – sign .
– r = 10 and −7, 7 , 295 can be represented as
– (3 -1 5)ten representing (300 – 10 + 5 = 295)
– (3 0 -5)ten representing (300 + 0 - 5 = 295)
– (1 -7 0 -5)ten representing (1000 - 700 + 0 - 5 = 295)
• Fractional radix number system: r = 0.1 with digit set [0,9].
– . / =∑ 10
with λi in {-1, 1} can be used to specify the signs associated with the various
positions.