How Can I Convert Binary to Decimal?

  • Thread starter Thread starter EugP
  • Start date Start date
  • Tags Tags
    Binary
Click For Summary

Discussion Overview

The discussion focuses on methods for converting numbers between binary and decimal systems. Participants explore various techniques and seek clarification on the conversion process, particularly from decimal to binary.

Discussion Character

  • Homework-related
  • Technical explanation
  • Exploratory

Main Points Raised

  • One participant describes a method involving repeated division by 2 and tracking remainders for converting decimal to binary.
  • Another participant suggests reviewing academic papers to understand the relationship between decimal and binary systems.
  • Several participants provide links to external resources, specifically a wikiHow article, recommending the division-by-powers of two method as a simpler approach for beginners.
  • A participant introduces an alternative method that involves multiplying a binary accumulator and adding decimal digits, suggesting it can be implemented in programming languages like C or assembly.
  • One participant inquires about methods for converting binary to decimal, indicating a desire for a reciprocal understanding of the conversion process.

Areas of Agreement / Disagreement

Participants do not appear to reach a consensus on a single method for conversion, as multiple approaches are discussed, and some participants express uncertainty about the best method to use.

Contextual Notes

Some methods presented may depend on specific programming knowledge or assumptions about the reader's familiarity with binary and decimal systems. The discussion does not resolve which method is superior or more appropriate for beginners.

Who May Find This Useful

Individuals interested in learning about number system conversions, particularly students or beginners in computer science or mathematics.

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?
 

Similar threads

Replies
4
Views
2K
  • · Replies 14 ·
Replies
14
Views
2K
Replies
3
Views
10K
  • · Replies 18 ·
Replies
18
Views
4K
  • · Replies 7 ·
Replies
7
Views
4K
  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 12 ·
Replies
12
Views
11K
  • · Replies 10 ·
Replies
10
Views
17K