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?
 
Hi all I have some confusion about piezoelectrical sensors combination. If i have three acoustic piezoelectrical sensors (with same receive sensitivity in dB ref V/1uPa) placed at specific distance, these sensors receive acoustic signal from a sound source placed at far field distance (Plane Wave) and from broadside. I receive output of these sensors through individual preamplifiers, add them through hardware like summer circuit adder or in software after digitization and in this way got an...
I am not an electrical engineering student, but a lowly apprentice electrician. I learn both on the job and also take classes for my apprenticeship. I recently wired my first transformer and I understand that the neutral and ground are bonded together in the transformer or in the service. What I don't understand is, if the neutral is a current carrying conductor, which is then bonded to the ground conductor, why does current only flow back to its source and not on the ground path...
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...
Back
Top