Write the following decimal number in binary.
100
1100100
To convert the decimal number 100 to binary, you can use the following steps:
Step 1: Divide the decimal number by 2.
100 ÷ 2 = 50. Remainder 0.
Step 2: Divide the quotient from step 1 by 2.
50 ÷ 2 = 25. Remainder 0.
Step 3: Divide the quotient from step 2 by 2.
25 ÷ 2 = 12. Remainder 1.
Step 4: Divide the quotient from step 3 by 2.
12 ÷ 2 = 6. Remainder 0.
Step 5: Divide the quotient from step 4 by 2.
6 ÷ 2 = 3. Remainder 0.
Step 6: Divide the quotient from step 5 by 2.
3 ÷ 2 = 1. Remainder 1.
Step 7: Divide the quotient from step 6 by 2.
1 ÷ 2 = 0. Remainder 1.
Step 8: Write down the remainders from bottom to top (last remainder first).
The remainders are: 1 1 0 0 1 1 0.
Therefore, the decimal number 100 is equivalent to the binary number 1100100.