SLIDE 1
1
1/8/99 CSE378 Number rep. 1
Decimal and binary representation systems
- They both are positional representation systems
- In decimal numbers are represented by the coefficients of
the powers of 10
– Example: 321 = 3 . 102 + 2 . 101 + 1. 100
- Decomposing 321 in powers of 2 yields 321= 256 + 64 + 1
– or 1. 28 + 0. 27 + 1. 26 + 0. 25 + 0. 24 + 0. 23 + 0. 22 + 0. 21 + 1. 20 – or 1010000012
1/8/99 CSE378 Number rep. 2
Positional number systems
- More generally, a positive integer is represented in
– decimal by where the are between 0 and 9 – binary by where the are 0 or 1
i n n i i
a
- ×
∑
10
i
a
i m m i i
b
− =
×
∑
2
i