Convert Decimal to Binary - Get Help Here

  • Context: High School 
  • Thread starter Thread starter x_endlessrain_x
  • Start date Start date
  • Tags Tags
    Binary
Click For Summary

Discussion Overview

The discussion focuses on the process of converting decimal fractions to binary, specifically addressing the conversion of the decimal number 0.16 to its binary representation. The scope includes both theoretical understanding and practical application of binary conversion methods.

Discussion Character

  • Exploratory, Technical explanation, Homework-related

Main Points Raised

  • One participant inquires about the method for converting a decimal fraction, specifically 0.16, to binary.
  • Another participant explains a method for converting whole numbers to binary and suggests a similar approach for fractions, noting that the largest power of 2 less than the fraction should be identified.
  • This participant indicates that converting 0.16 may lead to a non-terminating binary representation and provides the initial binary digits as 0.001..., leaving the completion of the conversion as an exercise for the original poster.
  • A later reply shares a link to a resource on the IEEE floating point standard, which may provide additional context for binary representation.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the complete method for converting 0.16 to binary, as the discussion includes an incomplete conversion and a suggestion for further exploration.

Contextual Notes

The discussion does not clarify the assumptions involved in the conversion process, such as the treatment of non-terminating binary fractions or the specific method for completing the conversion of 0.16.

x_endlessrain_x
Messages
11
Reaction score
0
hi!

does anybody know how to convert a fraction(deciaml) to Binary?

for example how can we convert 0.16 to Binary?

thx for helping
 
Mathematics news on Phys.org
In a similar way you'd do for numbers > 0.

If we have 200, we can start by finding the largest power of 2 less than or equal to 200, namley 128, and we have 72 remaining. The largest power of 2 less than or equal to 72 is 64, with 8 remaining. The largest power of 2 less than or equal to 8 is 8, with zero remaining. With zero remaining, we stop. So, we have
1x128 + 1x64 + 0x32 + 0x16 + 1x8 + 0x4 + 0x2 + 0x1. In binary:
11001000.

Do the same for 0.16. The greatest power of 2 less than 0.16 is [itex]2^{-3} = 1/8 = 0.125[/itex]. This leaves 0.035 remaining. You might find yourself with a non-terminating binary representation. To start, you'll have 0.001... (I haven't figured out what will replace the "...", that's your job ;)).
 
ok,i got it ! thx
 

Similar threads

  • · Replies 28 ·
Replies
28
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 10 ·
Replies
10
Views
5K
  • · Replies 50 ·
2
Replies
50
Views
6K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K