How Can I Convert Binary to Decimal?

  • Thread starter Thread starter EugP
  • Start date Start date
  • Tags Tags
    Binary
AI Thread Summary
To convert binary to decimal, the division-by-powers of two method is recommended for beginners, as it simplifies the process. This involves repeatedly dividing the decimal number by 2 and noting the remainders. An alternative method utilizes unsigned multiplication of binary numbers, starting with the most significant digit and building the binary accumulator. The process includes multiplying the accumulator by 10 and adding each digit sequentially. Understanding these methods will facilitate a clearer grasp of the conversion between binary and decimal systems.
EugP
Messages
104
Reaction score
0
I'm trying to figure out how to convert from decimal to binary. I've read a few explanations but I still don't understand. Could someone please help?

The method I've read about invloved dividing the number you want to convert, by 2 each time, and looking at the remainder.
 
Engineering news on Phys.org
Go back to papers and find out how decimal and binary are related.
you will find the answer for question yourself.
 
MATLABdude said:
Here you go:
http://www.wikihow.com/Convert-from-Decimal-to-Binary

If you're first starting out, use the division-by-powers of two method, as this is conceptually easier.

an alternative method, if you have the means to do unsigned multiply of binary numbers, is to:

1. start with the Most Significant Digit of the decimal input.
2. initialize your binary accumulator to zero (then you may skip to step 4. if you like).
3. multiply the binary accumulator by 10 (00001010 in base 2).
4. add that digit, 0 to 9, to the binary accumulator.
5. move to one less significant digit (right by one place in the decimal input number).
6. if there are any remaining digits, loop back to step 3.
7. if no remaining digits, you're done; converted number in binary accumulator.

it's pretty easy to code that in C or assembly language.

now, how 'bout a nice and clean way to convert binary to decimal? know how to do that?
 
I have recently moved into a new (rather ancient) house and had a few trips of my Residual Current breaker. I dug out my old Socket tester which tell me the three pins are correct. But then the Red warning light tells me my socket(s) fail the loop test. I never had this before but my last house had an overhead supply with no Earth from the company. The tester said "get this checked" and the man said the (high but not ridiculous) earth resistance was acceptable. I stuck a new copper earth...
Thread 'Electromagnet magnetic field issue'
Hi Guys We are a bunch a mechanical engineers trying to build a simple electromagnet. Our design is based on a very similar magnet. However, our version is about 10 times less magnetic and we are wondering why. Our coil has exactly same length, same number of layers and turns. What is possibly wrong? PIN and bracket are made of iron and are in electrical contact, exactly like the reference design. Any help will be appreciated. Thanks. edit: even same wire diameter and coil was wounded by a...
Thread 'Beauty of old electrical and measuring things, etc.'
Even as a kid, I saw beauty in old devices. That made me want to understand how they worked. I had lots of old things that I keep and now reviving. Old things need to work to see the beauty. Here's what I've done so far. Two views of the gadgets shelves and my small work space: Here's a close up look at the meters, gauges and other measuring things: This is what I think of as surface-mount electrical components and wiring. The components are very old and shows how...
Back
Top