Number Bases

[ELECTRONICS GRADES 10 to 12]

Mathematical background necessary to understand binary logic. We will study:
Decimal, base 10
Binary, base 2
Octal, base 8
Hexadecimal, base 16


You will probably find this base conversion tool helpful in this lesson.
Decimal:
You may have noticed that many things are focused on the number 10 or powers of 10. One of these things is our common number system. You probably know that:

10,0001,000100101
238 =002*100+3*10+8
5179 =05*1000+1*100+7*10+9
20661 =2*10000+0*1000+6*100+6*10+1

The decimal system is based upon the number 10. Each digit in a number symbolizes that digit multiplied by the base raised to the power of the digit's position. 238 means 2*102+3*101+8*100.
Note that when we assign numbers to position we begin with 0, and that a decimal number consists only of the following digits: 0,1,2,3,4,5,6,7,8,9


Binary:
The binary system is based upon the number 2. There are only two digits, 0 and 1

6432168421
4 =0000100
19 =0010011
113 =1110001

1110001 means 1*2^6 + 1*2^5 + 1*2^4 + 0*2^3 + 0*2^2 + 0*2^1 + 1*2^0


Octal:
The octal system is based upon the number 8. There are eight digits, 0,1,2,3,4,5,6,7

40965126481
238 =00356
5179 =12073
20661 =50265

50265 means 5*8^4 + 0*8^3 + 2*8^2 + 6*8^1 + 5*8^0


Hexadecimal:
The hexadecimal system is based upon the number 16. There are sixteen digits, 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F

A=10
B=11
C=12
D=13
E=14
F=15

4096256161
238 =00EE
5179 =143B
20661 =50B5

50B5 means 5*16^3 + 0*16^2 + 11*16^1 + 5*16^0


[BACK] [TABLE OF CONTENTS] [NOT
AVAILABLE]