1. Not finding help here? Sign up for a free 30min tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Converting decimal to binary

  1. Dec 8, 2005 #1
    I am sorry to bother you people again and I don't really know if this is the right place to put it.

    my great professor shows us in pdf format that

    0.83(decimal)=0.1101(binary) because

    0.83 x 2 = 1.66 carry 1
    0.66 x 2 = 1.32 carry 1
    0.32 x 2 = 0.64 carry 0
    0.64 x 2 = 1.28 carry 1

    My question is why he stops doing it at the fourth digit?
    it seems you can still do the algarithm from 1.28 onward. why he stops?

    THanx alot... I am drowning.
     
  2. jcsd
  3. Dec 8, 2005 #2
    Sometimes you just have to stop sooner or later. Each iteration contributes half as much as the previous to the final precision of the answer. Since .28 will only add a zero value to the sum either the necessary precision has been obtained or the professor is satisfied that the point has been made well enough to satisfy your need for understanding the process? Just a guess.
     
  4. Dec 8, 2005 #3

    siddharth

    User Avatar
    Homework Helper
    Gold Member

    0.1101(binary) in decimal is,

    [tex] 1*2^{-1} + 1*2^{-2} + 0*2^{-3} + 1*2^{-4} = (0.8125)_{10} [/tex]

    which is not 0.83(decimal)
     
  5. Dec 8, 2005 #4
    So binary # can't exactly represent a decimal number?
    THANKS alot guys!!!
     
  6. Dec 8, 2005 #5

    NateTG

    User Avatar
    Science Advisor
    Homework Helper

    All numbers that can be represented in decimal notation can also be represented in binary notation. If a number has a terminating binary representation, then it also has a terminating decimal representation. However, some numbers, such as [itex]0.2[/itex](Decimal) have a terminating decimal representation, but have a repeating expression in binary.
     
  7. Dec 8, 2005 #6

    Integral

    User Avatar
    Staff Emeritus
    Science Advisor
    Gold Member

    Perhaps your teacher thought you, as the student, might want to continue the process? Have you?
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?



Similar Discussions: Converting decimal to binary
  1. Binary Relations (Replies: 11)

  2. Binary Relations (Replies: 2)

  3. Decimal expansion (Replies: 1)

Loading...