Converting Binary to Decimal: Calculating 2/3

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

Discussion Overview

The discussion revolves around the process of converting the fraction 2/3 into its binary equivalent and then back to decimal. Participants explore the method of binary representation of fractions, focusing on the calculations and conversions involved.

Discussion Character

  • Homework-related
  • Mathematical reasoning
  • Technical explanation

Main Points Raised

  • One participant presents an initial attempt at converting 2/3 to binary, suggesting the result is 0.10101010 and questions the correctness of this representation.
  • Another participant explains that fractions in binary are represented as sums of negative powers of two and provides a method for conversion, indicating how to determine the binary digits based on the remainder.
  • A participant expresses confusion regarding the subtraction process used in the conversion method.
  • A later reply clarifies that subtracting values helps track the remaining amount as binary digits are determined.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the correctness of the initial binary representation or the method of conversion, with some expressing confusion about the subtraction involved in the process.

Contextual Notes

The discussion includes assumptions about the method of converting fractions to binary and the interpretation of binary digits, which may not be fully articulated by all participants.

goaliejoe35
Messages
72
Reaction score
0
Homework Statement
Calculate the binary equivalent of 2/3 out to eight places. Then convert from binary to decimal. How close is the result to 2/3?


The attempt at a solution

I new to this and I am still trying to figure this stuff out so if someone could walk me through this that would be great! Here's what I came up with from some stuff I read...

2/3 * 2 = 1+1/3 X1=1
1/3 * 2 = 0+2/3 X2=0
...and so on...

I did that out to 8 places and got the number 10101010 and i suppose that that is actually 0.10101010 since 2/3 is .66666667?

Is this correct and if so how do I convert to decimal?
 
Physics news on Phys.org
Fractions in binary are stored as sum's of negative powers of two.
So write the headings, 1/2 1/4 1/8 1/16 1/32 ...
Convert the decimal to binary in almost the same way as you would for a whole number.
eg 0.66666666 -0.5 = 0.16 , so a 1 in the half column
0.16 is less than 0.25 so a 0 in the quarter column
0.16 - 0.125 = 0.035 so a 1 in the 1/8 column

etc.


If you do it this way, you have the remainder automatically as you work out thebinary.
 
I don't understand why your subtracting?
 
Each time you put down a 1 (representing a value of 1/2 or 1/4 of 1/8, etc.), you have less and less remainder left.

- Warren
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
5K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 10 ·
Replies
10
Views
4K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
5
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K