DLDZ
DLDZ
Number Systems
Base Conversion
Decimal to Octal, Decimal to hexadecimal
Octal to Decimal, hexadecimal to Decimal
Binary to Octal, Binary to hexadecimal
Octal to Binary, hexadecimal to Binary
Octal to hexadecimal, hexadecimal to Octal
MSB, LSB
Complement
1’s Complement
2’s Complement
NUMBER SYSTEMS
Decimal
10 digits
0,1,2,3,4,5,6,7,8
Binary
2 digits
0,1
Octal
8 digits
0,1,2,3,4,5,6,7
Hexadecimal
16 digits
0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F
NUMBER SYSTEMS
Decimal
10 digits
0,1,2,3,4,5,6,7,8
Binary
2 digits
0,1
Octal
8 digits
0,1,2,3,4,5,6,7
Hexadecimal
16 digits
0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F
Decimal Binary Octal Hexadecimal
0 0000 0 0
Answer = (110111)2
DECIMAL TO OCTAL
Answer = (572)8
DECIMAL TO HEXADECIMAL
Answer = (A26)16
DECIMAL TO BINARY, OCTAL, HEXADECIMAL (OTHER SYSTEMS)
Example: Convert (55)10 to(?)2 Example: Convert (378.93)10 to(?)8 Example: Convert (378.93)10 to(?)16
2 | 55 8 | 378 16 | 2598
2 | 27 ------ > 1 8 | 47 ------ > 2 16 | 162 ------ > 6
2 | 13 ------ > 1 8 | 5 ------ > 7 16 | 10 ------ > 2
2|6 ------ > 1 8 | 0 ------ > 5
2|3 ------ > 0 Answer = (A26)16
2|1 ------ > 1 Answer = (572)8
Answer = (110111)2
BINARY TO DECIMAL
Answer = (55.5)10
OCTAL TO DECIMAL
Answer = (2095.0937)8
HEXADECIMAL TO DECIMAL
Answer = (147)10
BINARY TO OCTAL
Partition digits into group of 3
Answer : (125)8
BINARY TO HEXADECIMAL
Partition digits into group of 4
Answer : (55)16
OCTAL TO BINARY
Substitute Binary for each digit
Answer : (101101101)2
OCTAL TO HEXADECIMAL & HEXADECIMAL TO OCTAL
Hexa
Octal Binary
decimal
OCTAL TO HEXADECIMAL
Example: (756.603)8
Octal 7 5 6 . 6 0 3
Example: (B9F.AE)16
hexadecimal B 9 F . A E
Binary 1011 1001 1111 . 1010 1110
Octal-Binary 101 110 011 111 . 101 011 100
Octal 5 6 3 7 . 5 3 4