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

Janis Voigtlaender voigt at tcs.inf.tu-dresden.de
Mon Oct 27 07:50:44 EDT 2008


Ketil Malde wrote:
> 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. 

Of course. But that was not the point of the discussion...

-- 
Dr. Janis Voigtlaender
http://wwwtcs.inf.tu-dresden.de/~voigt/
mailto:voigt at tcs.inf.tu-dresden.de


More information about the Haskell-Cafe mailing list