in reply to Fix floats like you do in your head
The proper solution is to define an epsilon that represents the precision used to compensate for accumulated rounding errors.
Indeed, this is the driving force behind the IEEE 754 standard.
Also of interest: What Every Computer Scientist Should Know About Floating-Point Arithmetic (1991) by David Golberg, is a great discussion of the IEEE 754 standard and its practical application.
Matt
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Fix floats like you do in your head
by tachyon (Chancellor) on Dec 25, 2002 at 00:11 UTC | |
by mojotoad (Monsignor) on Dec 25, 2002 at 01:07 UTC | |
by tachyon (Chancellor) on Dec 25, 2002 at 09:48 UTC | |
by mojotoad (Monsignor) on Dec 25, 2002 at 10:27 UTC | |
by tachyon (Chancellor) on Dec 25, 2002 at 15:10 UTC |