The traditional number systems that we learned in school and use every day (decimal, binary, hexadecimal, octal etc.) are positional number systems. In such a system, a number is represented by a string of digits where each digit position has an associated weight. The value of a number is a weighted sum of the digits.
- Example 1: 1734 = (1 x 1000) + (7 x 100) + (3 x 10) + (4 x 1)
- Example 2: 568.23 = (5 x 100) + (6 x 10) + (8 x 1) + (2 x 0.1) + (3 x 0.01)
In general, a number D of the form d1d0.d-1d-2 has the value
D = d1 x 101+ d0 x 100 + d-1 x 10-1 + d-2 x 10-2
Here 10 is called the radix or base.
Few Relevant Questions and Answers
Q1. Express the decimal number 106.58 as a sum of the values of each digit.
Answer: 106.58 = 1×102+0x101+6×100+5×10-1+8×10-2=1×100+0x10+6×1+5×0.1+8×0.01
Q2. What weight does the digit 7 have in each of the following numbers?
- 1370 – Ans. 10
- 6725 – Ans. 100
- 7051 – Ans. 1000
- 58.72 – Ans. 0.1
Weighting Structure of Other Number Systems
- Binary: 1011.01 = 1×23 + 0x22 + 1×21 + 1×20 + 1×2-1 + 1×2-2
- Hexadecimal: F1A2 = Fx163 + 1×162 + Ax161 + 2×160
- Octal: 436.7 = 4×82 + 3×81 + 6×80 + 7×8-1
- Base-4: 233 = 2×42 + 3×41 + 3×40