10010 in Binary
2026-02-28 10:21 Diff

18 can be converted from decimal to binary using various methods. Here are two common methods:

Expansion Method:

Step 1 - Determine the place values: In the binary system, each place value is a power of 2. Therefore, we will identify the powers of 2. 20 = 1 21 = 2 22 = 4 23 = 8 24 = 16 25 = 32 Since 32 is greater than 18, we stop at 24 = 16.

Step 2 - Identify the largest power of 2: We stopped at 24 = 16, as it is the largest power of 2 less than or equal to 18. Write 1 in the 24 place. Now subtract 16 from 18. 18 - 16 = 2

Step 3 - Identify the next largest power of 2: The largest power of 2 that fits into the result of the previous step, 2, is 21. Write 1 in the 21 place. Then subtract 2 from 2. 2 - 2 = 0. Stop here as the remainder is 0.

Step 4 - Identify unused place values: Write 0s in the remaining places, which are 20, 22, and 23.

Step 5 - Write the values in reverse order: We now write the numbers upside down to represent 18 in binary. Therefore, 10010 is 18 in binary.

Grouping Method:

Step 1 - Divide 18 by 2. 18 / 2 = 9. Here, 9 is the quotient, and 0 is the remainder.

Step 2 - Divide the previous quotient (9) by 2. 9 / 2 = 4. The quotient is 4, and the remainder is 1.

Step 3 - Repeat the previous step. 4 / 2 = 2. Now, the quotient is 2, and 0 is the remainder.

Step 4 - Repeat the previous step. 2 / 2 = 1. The quotient is 1, and the remainder is 0.

Step 5 - Repeat the previous step. 1 / 2 = 0. Here, the remainder is 1. Stop as the quotient is 0.

Step 6 - Write down the remainders from bottom to top. Therefore, 18 (decimal) = 10010 (binary).