in reply to Re^2: Numeric Comparisons Randomly Giving the Wrong Result
in thread Numeric Comparisons Randomly Giving the Wrong Result
Only if your units are not whole, indivisable units already. If you do all your calculations in cents and do not allow sub-cent amounts, then you won't need to care about rounding.
If you do fancy calculations, like repeatedly adding fractional parts of things, you need to give deep thought to all your calculations anyway, whether they are in floating point or integer numbers.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Numeric Comparisons Randomly Giving the Wrong Result
by mjscott2702 (Pilgrim) on Sep 30, 2010 at 14:19 UTC | |
by Corion (Patriarch) on Sep 30, 2010 at 14:52 UTC | |
by mjscott2702 (Pilgrim) on Sep 30, 2010 at 14:56 UTC | |
by halfcountplus (Hermit) on Sep 30, 2010 at 14:51 UTC | |
by mjscott2702 (Pilgrim) on Oct 01, 2010 at 10:59 UTC |