Converting 9 from Decimal to Binary
Converting a decimal number to binary involves representing the number using only 0s and 1s. Here's how to convert 9 from decimal to binary:
1. Repeated Division by 2
- Divide 9 by 2: 9 divided by 2 is 4 with a remainder of 1.
- Divide 4 by 2: 4 divided by 2 is 2 with a remainder of 0.
- Divide 2 by 2: 2 divided by 2 is 1 with a remainder of 0.
- Divide 1 by 2: 1 divided by 2 is 0 with a remainder of 1.
2. Collect Remainders
Now, collect the remainders from each division in reverse order:
- 1001
3. Result
Therefore, the binary representation of 9 is 1001.