roundoff errors



On 3/11/09, Raymond Toy <toy.raymond at gmail.com> wrote:

> Expected behavior with floating point numbers.  The numbers you give do
> not have floating point values so they are rounded to the nearest
> representable value.  Use rationals if you want exact answers.

Or maybe bigfloats -- for the examples shown, the rounding behavior
might be less surprising.

  325.65b0 + 471.67b0; => 7.9732b2

  17.91b0 + 34.77b0; => 5.268b1

FWIW

Robert Dodier