Fundamentals of data representation - AQANumber bases

All data is represented as binary digits, whether it is numbers, text, images or sound. Calculations are also made in binary.

Part ofComputer ScienceComputational thinking and problem solving

Number bases

Humans tend to use the number system. However, computers work in . Decimal is the most common human number system and was developed because people had access to ten physical to count on, their fingers and ten toes!

Two hands, each with four fingers and a thumb.
Figure caption,
Example of a decimal number system

Decimal numbers must be converted into their binary equivalent before a computer can use them.

The decimal system has ten digits - 0, 1, 2, 3, 4, 5, 6, 7, 8 and 9. Each decimal place value is calculated by multiplying the previous place value by ten. For example:

10,0001,000100101
10,000
1,000
100
10
1

So, the value of the number 124 in decimal place values is actually:

Place value10,0001,000100101
Value00124
Place valueValue
10,0000
1,0000
1001
102
14

This gives (1 × 100) + (2 × 10) + (1 × 4) = 124