Hi all:

I just read about definitions of Prelude [1], and noticing that.

In 6.4.6 Coercions and Component Extraction, it discribes like this:


"round x returns the nearest integer to x, the even integer if x is equidistant 
between two integers."


I think this is unresonable. then try it in GHC 6.8.3.


Prelude> round 3.5
4
Prelude> round 2.5
2


Is there any explanation about that ?


[1] The Haskell 98 Report: Predefined Types and Classes
    http://haskell.org/onlinereport/basic.html

    Regards
--------------
L.Guo
2008-10-27

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to