0
1.4kviews
Explain the methods of representation of Integers.
1 Answer
written 24 months ago by |
Integers are whole numbers or fixed-point numbers with the radix point fixed after the least-significant bit.
The commonly-used bit-lengths for integers are 8-bit, 16-bit, 32-bit, or 64-bit. Besides bit-lengths, there are two representation schemes for integers:
Unsigned Integers: can represent zero and positive integers.
Unsigned integers can represent zero and positive integers, but not negative integers. The value of an unsigned integer is interpreted as "the magnitude of its underlying binary pattern".
Three representation schemes had been proposed for signed integers: Sign-Magnitude representation
1's Complement representation
2's Complement representation