Re: loss of precision



rudra <bnrj.rudra@xxxxxxxxx> wrote:

dear richard and glen,
probably you misunderstood me. what i want to mean is "why the number
0.6 is represented by 0.59999999999999998 ?"

No, I don't think we did. I'd say that you misunderstood the answers, or
anyway, so it seems. Do you understand the difference between binary and
decimal? Or did you just skip over that part of the answers (the most
important part)? There is no number 0.6 in a finite binary
representation. To get exactly 0.6, you would need a decimal
representation or an infinite binary one, neither of which you are going
to get.

In fact, I will further note that the number is not "represented" by
0.599...etc. That, as you might note, is decimal. The number is
represented by the internal binary representation. The 0.5999...etc is
not the representation, but instead is the result of converting the
representation to a decimal form for output. It is actually quite
important to understand that; it is more than just a quibble of
terminology.

--
Richard Maine | Good judgement comes from experience;
email: last name at domain . net | experience comes from bad judgement.
domain: summertriangle | -- Mark Twain
.



Relevant Pages

  • Re: Backfiring, ReFermenting, Frizzeling, and Ferment Stew Wells, Etc.
    ... on their backs. ... You're not necessarily going to like this representation (although you ... You misunderstood your own doctrine. ...
    (talk.religion.buddhism)
  • Re: Question
    ... What, pray tell, is the decimal representation of this number? ... Let me repeat it again but I will use Arturo's terminology. ... How do you know that y/2 = y? ... infinite number by any finite number you will get the same number. ...
    (sci.math)
  • Re: Overload print
    ... Is there anyway in a class to overload the print function? ... Your terminology threw me off for a moment. ... You want to override the default representation of an object. ...
    (comp.lang.python)
  • Re: Question
    ... What, pray tell, is the decimal representation of this number? ... Jose Carlos Santos ... Let me repeat it again but I will use Arturo's terminology. ...
    (sci.math)
  • Re: Question
    ... What, pray tell, is the decimal representation of this number? ... Let me repeat it again but I will use Arturo's terminology. ... How do you know that y/2 = y? ...
    (sci.math)