From: Ian Lynagh Date: Wed, 19 Nov 2008 14:31:31 +0000 (+0000) Subject: Add more description of what "round" does, from the H98 report X-Git-Tag: 2009-06-25~96 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=bf74c3a3a192f8fde350d929a44e28a9d7b72890;p=ghc-base.git Add more description of what "round" does, from the H98 report --- diff --git a/GHC/Real.lhs b/GHC/Real.lhs index da6053e..aa00ccb 100644 --- a/GHC/Real.lhs +++ b/GHC/Real.lhs @@ -173,7 +173,8 @@ class (Real a, Fractional a) => RealFrac a where properFraction :: (Integral b) => a -> (b,a) -- | @'truncate' x@ returns the integer nearest @x@ between zero and @x@ truncate :: (Integral b) => a -> b - -- | @'round' x@ returns the nearest integer to @x@ + -- | @'round' x@ returns the nearest integer to @x@; + -- the even integer if @x@ is equidistant between two integers round :: (Integral b) => a -> b -- | @'ceiling' x@ returns the least integer not less than @x@ ceiling :: (Integral b) => a -> b