[Haskell-cafe] Why 'round' does not just round numbers ?
tom.davie at gmail.com
Mon Oct 27 09:50:56 EDT 2008
>>  The Haskell 98 Report: Predefined Types and Classes
> This behaviour is not what I expect after reading the description at
> . Given that this behaviour has caused a bit of confusion I think a
> change to the documention might be in order.
Given that the documentation says "round x returns the nearest integer
to x", I think pretty much any behavior can be expected -- there's no
single integer nearest to 2.5. The documentation certainly needs
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe