Week 3 - Number System
Week 3 - Number System
Week 3 - Number System
Number Systems
1.Indirect Method:
Binary Decimal Octal
e.g. (11011)2
Its decimal equivalent is
1x24+1x23+0x22+1x21+1x20 = (27)10
(division method)
And its Octal equivalent is (33)8
Binary representation of integers
There are three ways for representing the positive and negative
integers into its binary equivalent.
1.Sign magnitude representation
2.One’s Complement
3.Two’s Complement
Binary representation of integers
0+0=0
0+1=1
1+0=1
1 + 1 = 0 (Carry 1)
Binary Addition
Example:
1 1 0 1 0 1
1 0 1 1 1 1
1 1 0 0 1 0 0
Binary Addition
Example:
1 0 1 1 0
0 1 1 0 1
1 0 0 0 1 1
Any Question?