Home

How to convert from a decimal-to-binary and binary-to-decimal? The answer of this question is shown below. I hope this can help you.


Decimal to Binary
To Convert a decimal number to a binary number follows a straightforward method.
It involves dividing the number to be converted, say N, by 2 (since binary is in base 2), and making note of the remainder. We continue dividing the quotient (N / 2) by 2, until we reach the division of (1 / 2), also making note of all remainders.
Example 1: Convert 98 from decimal to binary.


1) Divide 98 by 2, making note of the remainder. Continue dividing quotients by 2, making note of the remainders. Also note the star (*) beside the last remainder.
DivisionRemainder,R

98 / 2 = 49

0

49 / 2 = 24

1

24 / 2 = 12

0

12 / 2 = 6

0

6 / 2 = 3

0

3 / 2 = 1

1

1 / 2 = 0

1*



2) The sequence of remainders going up gives the answer. Starting from 1*, we have 1100010. Therefore, 98 in decimal is 1100010 in binary.

Example 2: Convert 21 into binary.

DivisionRemainder,R

21 / 2 = 10

1

10 / 2 = 5

0

5 / 2 = 2

1

2 / 2 = 1

0

1 / 2 = 0

1*



Therefore, 21 in decimal is 10101 in binary

Binary to Decimal

Now, how to convert from binary to decimal number. Binary to decimal conversion follows the same steps as decimal to binary, except in reverse order. We begin by multiplying 0 x 2 and adding 1. We continue to multiply the numbers in the "results" column by 2, and adding the digits from left to right in our binary number.

Example 1: Convert 11101 from binary to decimal.

OperationResult

0 x 2 + 1

1

1 x 2 + 1

3

3 x 2 + 1

7

7 x 2 + 0

14

14 x 2 + 1

29



Therefore, 11101 in binary is 29 in decimal.

30 Responses to "Binary Numbers: Decimal Conversion"

  1. Anonymous Says:

    Good explanation, but can see the complete conversion for ASCII codes to binary system, decimal system and hexadecimal system on:
    http://e-worldprojects.blogspot.com/2010/02/characters-and-ascii-code.html

  2. ZephyrWorld Says:

    Hello there! Are you an often online visitor or maybe you are more into face to face communication?

  3. Anonymous Says:

    hi,,i just want to share link talking about binary number

    http://www.math-worksheets.co.uk/141-tmd-what-are-binary-numbers-part-1/

  4. Anonymous Says:

    Is binary system is a scam.,?

    Binary Trading Program

  5. Rose Maria Says:

    How does stock options trading work?
    Best Binary Options

  6. Anonymous Says:

    Another helpful post. This is a very nice blog that I will definitively come back to several more times this year!
    unseriöse Binäre Optionen Broker

  7. Anonymous Says:

    Good topic, this is going to help a lot of people get the whole concept
    binary options signals

  8. Anonymous Says:

    I really loved reading your thoughts, obviously you know what are you talking about! Your site is so easy to use too, I’ve bookmark it in my folder
    how to make money with binary options

  9. Anonymous Says:

    Really!!! I am very impressed after reading this blog. thanks for providing deep information for
    recours collectif

  10. Jr. Williams Says:

    have read many blogs in the net but have never come across such a well written blog. Good work keep it up
    mt4 vps

  11. Jr. Williams Says:

    I have been reading your posts regularly. I need to say that you are doing a fantastic job. Please keep up the great work.
    best binary options indicator mt4

  12. John Adam Says:

    This is a really good read for me, Must admit that you are one of the best bloggers I ever saw.Thanks for posting this informative article.
    Forex blog

  13. JohnJohn Says:

    I made this website
    http://www.binarydecimal.com/
    It can convert any numeral system from one to all others...
    Example
    http://www.binarydecimal.com/ff00ff-hexadecimal/

  14. Petersons Says:

    I think most people would agree with your article. I am going to bookmark this web site so I can come back and read more articles. Keep up the good work!
    Economic Indicator for tape reading

  15. Anonymous Says:

    Another helpful post. This is a very nice blog that I will definitively come back to several more times this year!
    trading alert services

  16. Dorothy Cargile Says:

    Thanks for the information and links you shared this is so should be a useful and quite informative!
    trading system

  17. James Smith Brown Says:

    Good topic, this is going to help a lot of people get the whole concept.
    copy buffet

  18. Dorothy Says:

    Another helpful post. This is a very nice blog that I will definitively come back to several more times this year!
    windows vps hosting

  19. Dorothy Says:

    Great read! I will come back for more :)
    option trading

  20. Jhon Marshal Says:

    I like your post & I will always be coming frequently to read more of your post. Thank you very much for your post once more.
    singapore stocks

  21. Jhon Marshal Says:

    I think most people would agree with your article. I am going to bookmark this web site so I can come back and read more articles. Keep up the good work!
    forex course

  22. Dorothy Says:

    I am satisfied that you simply shared this useful information with us.
    Learn to trade

  23. steward Says:

    Thanks for this superb blog about trading,.
    binary options strategy

  24. steward Says:

    Thanks for sharing this perfect blog,
    i really like it,.
    binary options trading hours

  25. Gennie Says:

    Keep posting more related blogs just like that,.
    It's very nice,
    Code Fibo

  26. Andrew Carter Says:

    Nice blog and your all presenting information are very great and it's really good well done.
    market

  27. Jhon Marshal Says:

    I like your post & I will always be coming frequently to read more of your post. Thank you very much for your post once more.
    online trading

  28. Terrance McDaniel Says:

    Valuable information in your blog and I really appreciate your work and keep it up dude I really very informative blog about the Conversion Perk keep it up.
    Conversion Perk

  29. umer Says:

    Really you blog have very interesting and very valuable information about the live trading room well done.
    live trading room

  30. James Carlos Says:

    Nice blog and the description about it very amazing I really liked it.



    biznet forex

Leave a Reply