Re: weird



got it. thanks!

Steve Amphlett wrote:


Shawn wrote:


To the Computing Gods:

Any idea why the below fails (returns false) in MATLAB

.035 + .0025 == .0375

Note it doesn't seem to be a sensitivity issue. i.e. the
following
works fine

.035 + .00251 == .03751

as does any other combination I've tried.

Thanks so much for the help. I'm going a bit crazy with this!

-Shawn


Others will give you te longhand answer. But for now, try this:

sprintf('*.20f\n', [.035 .0025 .0375 .00251 .03751])

It should give you a clue.
.



Relevant Pages

  • Re: weird
    ... To the Computing Gods: ... Any idea why the below fails in MATLAB ... Note it doesn't seem to be a sensitivity issue. ...
    (comp.soft-sys.matlab)
  • weird
    ... To the Computing Gods: ... Any idea why the below fails in MATLAB ... Note it doesn't seem to be a sensitivity issue. ...
    (comp.soft-sys.matlab)
  • Re: weird
    ... To the Computing Gods: ... Any idea why the below fails in MATLAB ... Note it doesn't seem to be a sensitivity issue. ...
    (comp.soft-sys.matlab)
  • Re: OT: Did they lie or not?
    ... >No intention to engage with Phil on this issue (since it's obviously a waste ... These are not the actions of someone interested in facts, reasoning, ... Shawn: I never ever said it did not happen. ... Shawn fails to address the history of the last 10 years: ...
    (rec.arts.marching.drumcorps)
  • Re: Not like the Nazis ...
    ... claim that Bush is somehow the equivalent of Hitler. ... >>>It looks like mostly a list of conjectures, Shawn. ... >>>had been bribed for Billions by Saddam. ... >>>fails to note that the recession began on Clinton's term. ...
    (rec.arts.marching.drumcorps)