in reply to Re: eq vs ==
in thread eq vs ==
Moritz, in general that's problematic.
The calculation error doubles with every calculation step, no matter how big epsilon is, you can construct a counterexample, where your rule breaks.
Consequently you have to limit the numbers of calculations before you can tell which epsilon is save!
IMHO that's a ridiculous big effort compared to the normal possibility to stay integer right away by multiplicating the fractions away.
532.2 - 23.2 => 5232 - 232 = 5000 => 500.0
Cheers Rolf
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: eq vs ==
by moritz (Cardinal) on Nov 10, 2009 at 15:11 UTC | |
by LanX (Saint) on Nov 10, 2009 at 15:24 UTC | |
by moritz (Cardinal) on Nov 10, 2009 at 15:28 UTC | |
by LanX (Saint) on Nov 10, 2009 at 17:04 UTC |