Computer ScienceNEB 2076 (old course)

Convert (513) 10 Decimal number to (..) 2 Binary number.

5

Answer

To convert the decimal number to its binary equivalent, we use the division-by-2 method. This involves repeatedly dividing the number by 2 and recording the remainders. The binary number is obtained by reading the remainders in reverse order.

Step-by-Step Conversion:

  1. Divide 513 by 2:

  2. Divide 256 by 2:

  3. Divide 128 by 2:

  4. Divide 64 by 2:

  5. Divide 32 by 2:

  6. Divide 16 by 2:

  7. Divide 8 by 2:

  8. Divide 4 by 2:

  9. Divide 2 by 2:

  10. Divide 1 by 2:

Now, we write the remainders in reverse order (from the last division to the first):

Verification:

To ensure correctness, we can convert back to decimal:

Thus, the binary equivalent of is .

Discussion

Loading…

More Computer Science questions

All Computer Science old questions