Expressas a decimal. Expressas a decimal. Convertto a decimal..
Decimal Review 10 5 10 4 10 3 10 2 10 1 10 0 100,00010,0001,000100101 Decimal ~ Base 10 number...
-
Upload
buck-alexander -
Category
Documents
-
view
216 -
download
4
Transcript of Decimal Review 10 5 10 4 10 3 10 2 10 1 10 0 100,00010,0001,000100101 Decimal ~ Base 10 number...
Decimal Review
105 104 103 102 101 100
100,000 10,000 1,000 100 10 1
Decimal ~ Base 10 number system10 different numbers: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
Based on the powers of 10 (see handout)1, 10, 100, 1000, 10000, 100000, …
Decimal Example
2657 = 2000 + 600 + 50 + 7
= 2*1000 + 6*100 + 5*10 + 7*1
= 2*103 + 6*102 + 5*101 + 7*100
Place the corresponding digits in the decimal chart for the number: 830157
Binary!
Counting with 1s and 0s
Binary
Base 2 number system2 different numbers: 0, 1
Based on the powers of 2 (see handout)1, 2, 4, 8, 16, 32, …
25 24 23 22 21 20
32 16 8 4 2 1
Example
10112 = 1*23 + 0*22 + 1*21 + 1*20
= 1*8 + 0*4 + 1*2 + 1*1
= 8 + 2 + 1 = 1110
Place the corresponding digits in the binary chart for the number: 001101
What is it in decimal (base 10)?
Examples
1) Draw the powers of 2 table2) Place the following numbers in the table3) Determine the decimal version!
000112 = ?
011112 = ?
1010112 = ?
ON-OFF-ON-ON
1 0 1 1
Haha!
"There are only 10 types of people in the world: Those who understand binary, and those who don't"
Decimal Binary
Review
Each binary digit (bit) is a power of 2
... 27 26 25 24 23 22 21 20
... 128 64 32 16 8 4 2 1
...
Decimal Binary
1. Write out the powers of 22. Subtract the largest power of 2 that is less than
your number3. Make note of which power of 2 you subtracted with
a 1 (unused powers of 2 will be 0)4. Subtract the next largest power of 2 from the result
that you have5. Repeat until you reach 06. Build your binary number from the 1s and 0s that
you have placed
Examples
1510 = ?
4910 = ?
... 27 26 25 24 23 22 21 20
... 128 64 32 16 8 4 2 1
...
Convert the following from decimal to binary
810 = ?
2510 = ?
8310 = ?