Re: Problem in Float Arithmetic




"Doug Harrison [MVP]" <dsh@xxxxxxxx> wrote in message news:j17t64pamsceu18q7mvlra7t9tdqq09sie@xxxxxxxxxx

Well actually my "lengthy treatise" was very precisely relevant to the OP's
problem and adding integers cast to double precision isn't.

Unless I missed it, you haven't replied to the OP; you've only replied to
me....

My apologies if you thought that my post was intended only for you. I'll be careful where I jump into a topic in future. But the topic was floating point subtraction errors, and illustrated the problems you run into if you consider floating point numbers to be in any sense "exact".

My advice continues to be not to use the words "floating point" and "exact" in the same breath, and I really don't see anything to be gained in continuing to discuss the very few operations on very few floating point numbers which can be performed without error propagation.

And life is certainly too short for digressing as far as discussing your statements about what I "must think" about integer types.

If you had said "in general" instead of
"never", I wouldn't have answered your reply to me in the first place.<

My misfortune, then.

Dave
--
David Webber
Author of 'Mozart the Music Processor'
http://www.mozart.co.uk
For discussion/support see
http://www.mozart.co.uk/mozartists/mailinglist.htm


.



Relevant Pages

  • Re: Double comparison problem
    ... Dietmar Kuehl wrote: ... > chris wrote: ... After all, comparing floating ... as long as are careful:) But like you say you ...
    (comp.lang.cpp)
  • Re: terrible bug in Mathematica (//N), but why????
    ... the first expression and look at the numbers you get. ... A careful ... study of the results of floating point arithmetic may reveal why ... ask why does Mathematica not make this mistake for 44 or 42 but for 43? ...
    (sci.math.symbolic)
  • Re: Python syntax in Lisp and Scheme
    ... Gerrit Holl: ... Be careful with that. ... the floating point number 4.0 and the last returns 1 because 1/31 is ... (unless you are using true division). ...
    (comp.lang.python)
  • Re: Jingle Bells subliminal message in reverse
    ... LOL. ... Hahaha:) Be careful there's a lot of those types of things ... floating around on the internet. ...
    (alt.support.stop-smoking)

Quantcast