Master the technique of converting standard numbers into binary format for computer processing.
Every photo you take and every text you send is secretly a massive string of 1s and 0s. But how does a computer translate a number like 150 into a language made only of two digits?
Let's convert the decimal number 5 into binary. 1. Look at our grid: . 2. 5 is smaller than 8, so the first five slots are 0. 3. We need a 4 (), so we put a 1 there. Remainder: . 4. We don't need a 2, so that's a 0. 5. We need a 1 (), so we put a 1 there. 6. Result: .
Quick Check
What is the decimal value of the binary position ?
Answer
16
The most reliable way to convert larger numbers is the Subtraction Method. You start with your decimal number and look at the 8-bit place values (). Ask: 'Can I subtract this place value from my current total?' If yes, write a 1 and subtract the value. If no, write a 0 and move to the next smaller place value. You repeat this until you reach the position. This systematic approach ensures you never miss a bit or double-count a value.
Convert 172 to 8-bit binary: 1. Can we subtract 128 from 172? Yes. (). Bit: 1 2. Can we subtract 64 from 44? No. Bit: 0 3. Can we subtract 32 from 44? Yes. (). Bit: 1 4. Can we subtract 16 from 12? No. Bit: 0 5. Can we subtract 8 from 12? Yes. (). Bit: 1 6. Can we subtract 4 from 4? Yes. (). Bit: 1 7. Remaining bits (2 and 1) are 0. Result:
Quick Check
If a decimal number is odd (like 7, 15, or 21), what will the very last bit (the place) always be?
Answer
1
How many numbers can we actually fit into 8 bits? The largest value occurs when all bits are 1 (). This equals . A helpful rule is that bits can represent unique values (including zero), ranging from to . If you need to represent the number 300, 8 bits won't be enough because . You would need to add a 9th bit () to handle it.
How many bits are needed to represent the decimal number 40? 1. List powers of 2: . 2. 32 is the largest power less than 40. This is the 6th position (). 3. Therefore, we need at least 6 bits to represent 40. 4. Calculation: , which is in binary.
What is the 8-bit binary representation of the decimal number 10?
What is the maximum decimal value that can be represented by 4 bits?
The binary string 11000000 is equal to the decimal number 192.
Review Tomorrow
In 24 hours, try to write down the eight place values for an 8-bit number from memory and convert your current age into binary.
Practice Activity
Find three small items near you (like pens or coins). Assign them values of 4, 2, and 1. Try to 'show' the numbers 1 through 7 by picking up the items.