[Haskell-cafe] Why 'round' does not just round numbers ?

Ketil Malde ketil at malde.org
Mon Oct 27 07:14:22 EDT 2008

Janis Voigtlaender <voigt at tcs.inf.tu-dresden.de> writes:

>> If you round to odd instead of round to even, then 4.5 rounds to 5,

> Well, of course I did not learn to round to odd. I learned to round .5
> to above, but not to do repeated rounding.

Since just about every floating point operation involves some sort of
loss of precision, repeated rounding is a fact of life.  Or use

If I haven't seen further, it is by standing in the footprints of giants

More information about the Haskell-Cafe mailing list