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 method involves repeatedly dividing the number by 2 and recording the remainders, which form the binary digits (bits) in reverse order.

Step-by-Step Conversion:

  1. Divide 513 by 2 and record the remainder:

  2. Divide the quotient (256) by 2 and record the remainder:

  3. Divide the quotient (128) by 2 and record the remainder:

  4. Divide the quotient (64) by 2 and record the remainder:

  5. Divide the quotient (32) by 2 and record the remainder:

  6. Divide the quotient (16) by 2 and record the remainder:

  7. Divide the quotient (8) by 2 and record the remainder:

  8. Divide the quotient (4) by 2 and record the remainder:

  9. Divide the quotient (2) by 2 and record the remainder:

  10. Divide the quotient (1) by 2 and record the remainder:

Writing the Binary Number:

Now, write the remainders in reverse order (from the last division to the first). This gives us the binary representation of :

Verification:

To ensure correctness, we can convert back to decimal:

Thus, the conversion is correct.

Final Answer:

Discussion

Loading…

More Computer Science questions

All Computer Science old questions