IGCSETM and O Level Computer Science
Number systems:
Converting binary to denary
Converting denary to binary
IGCSETM and O Level Computer Science Boost © Hodder & Stoughton 2021
IGCSETM and O Level Computer Science
Converting binary numbers to denary
128 64 32 16 8 4 2 1
1 1 1 0 1 1 1 0
128 + 64 + 32 +8 +4 +2 = 238
11101110(binary) = 238(denary)
IGCSETM and O Level Computer Science Boost © Hodder & Stoughton 2021
IGCSETM and O Level Computer Science
Converting denary numbers to binary
To find the equivalent 8-bit binary value, we carry out eight divisions by 2:
1 2 107
2 2 53 remainder 1
107
3 2 26 remainder 1
4 2 13 remainder 0
5 2 6 remainder 1
6 2 3 remainder 0
1 remainder 1
IGCSETM and O Level Computer Science Boost © Hodder & Stoughton 2021
IGCSETM and O Level Computer Science
Converting denary numbers to binary
To find the equivalent 8-bit binary value, we carry out eight divisions by 2:
1 2 107
2 2 53 remainder 1
3 2 26 remainder 1
01101011
4 2 13 remainder 0
5 2 6 remainder 1
6 2 3 remainder 0
7 2 1 remainder 1
8 2 0 remainder 1
0 remainder 0
IGCSETM and O Level Computer Science Boost © Hodder & Stoughton 2021
IGCSETM and O Level Computer Science
Converting denary numbers to binary by trial and error
107
128 64 32 16 8 4 2 1
0 1 1 0 1 0 1 1
Total: 64 + 32 = 96
IGCSETM and O Level Computer Science Boost © Hodder & Stoughton 2021
IGCSETM and O Level Computer Science
Converting denary numbers to binary by trial and error
107
128 64 32 16 8 4 2 1
0 1 1 0 1 0 1 1
Total: 64 + 32 =+ 96
8 =+ 104
2 =+ 106
1 = 107
IGCSETM and O Level Computer Science Boost © Hodder & Stoughton 2021