Number System
Number System
Dr. Shikalgar S. K.
SITCOE, Yadrav
Contents
Binary Number System
Decimal Number System
Octal Number System
Hexadecimal Number System
The basics:
Bases we will use
◦ Binary: Base 2
◦ Octal: Base 8
◦ Decimal: Base 10
◦ Hexadecimal: Base 16
Positional number system
◦ 1012= 1×22 + 0×21 + 1×20
◦ 638 = 6×81 + 3×80
◦ A116= 10×161 + 1×160
Binary → hex/decimal/octal
conversion
Conversion from binary to octal/hex
◦ Binary: 10011110001
◦ Octal: 10 | 011 | 110 | 001=23618
◦ Hex: 100 | 1111 | 0001=4F116
Conversion from binary to decimal
◦ 1012= 1×22 + 0×21 + 1×20 = 510
◦ 63.48 = 6×81 + 3×80 + 4×8–1 = 51.510
◦ A116= 10×161 + 1×160 = 16110
Decimal→ binary/octal/hex
conversion
–3 1110 0001 +2
Number wheel 1101 0010
–4 +3
1100 0011
Only one zero!
– 5 1011 0100 + 4