Chapter 2 - Lecture Data Representation
Chapter 2 - Lecture Data Representation
CoSc2021
Required Reading
Stallings Chapter 9
Sivarama Dandamudi, Sixth Edition, Chapter 2
0.5V
0.0V
February 15, 2023 5
Integer Representation
Computer arithmetic is commonly performed on two very different types of
numbers:
integer Representation
floating point Representation
Integer Representation:
Only have 0 & 1 to represent everything
Positive numbers stored in binary
e.g. 41=00101001
No minus sign
No period or radix point
It can be represented in
Sign-Magnitude
Two’s compliment
February 15, 2023 6
00001101 Quotient
Divisor 1011 10010011 Dividend
1011
Partial 001110
1011
Remainders
001111
1011
Remainder
100