Re: weird
- From: shawn <swstaker@xxxxxxxxx>
- Date: Mon, 17 Jul 2006 14:18:42 -0400
got it. thanks!
Steve Amphlett wrote:
.
Shawn wrote:
following
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
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.
- References:
- weird
- From: Shawn
- weird
- Prev by Date: turn $6 into $6000 in two weeks... legally
- Next by Date: Close a GUI
- Previous by thread: Re: weird
- Next by thread: drawing with replacement
- Index(es):
Relevant Pages
|