Number Systems
Number Systems
hundred-
ten-millions millions ten-thousands thousands hundreds tens ones
thousands
Expanded Notation
• The ten digits that are used in the decimal system are 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9.
• Any number in the decimal system can be written as a sum of each digit multiplied by the
value of its column. This is called expanded notation.
• The number 6,825 in the decimal system actually means:
5*100 = 5*1 = 5
+ 2*101 = 2*10 = 20
+ 8*102 = 8*100 = 800
+ 6*103 = 6*1,000 = 6,000
6,825
Therefore, 6,825 can be expressed as: 6*103 + 8*102 + 2*101 + 5*100
The Binary System
Power of 2 27 26 25 24 23 22 21 20
Binary representation
Converting the Decimal Number 2910 to Binary
• Use the table
Power of 2 25 24 23 22 21 20
Decimal value 32 16 8 4 2 1
Binary representation 0 1 1 1 0 1
Converting the Decimal Number 17210 to Binary
• Use the table
Power of 2 27 26 25 24 23 22 21 20
Decimal value 128 64 32 16 8 4 2 1
Binary
1 0 1 0 1 1 0 0
representation
Converting Binary to Decimal
• To convert a binary number back to decimal, just add the value of each
binary column.
Convert the binary number 10112 to decimal
o
Power of 2 27 26 25 24 23 22 21 20
Decimal value 128 64 32 16 8 4 2 1
Binary
representation
Convert the Binary Number 101010102 to Decimal
• -
The Hexadecimal System
• The hexadecimal system uses a base of 16.
• The hexadecimal system makes it easier for humans to read binary
notation.
The Hexadecimal System
Hexadecimal
column
164 163 162 161 160
Store the decimal integer 510 in an 8- Store the decimal integer 92810 in a 16-
bit memory location: bit memory location:
•
Unsigned Binary Integers
Store the decimal integer 510 in an 8- Store the decimal integer 92810 in a 16-
bit memory location: bit memory location: