From bf74c3a3a192f8fde350d929a44e28a9d7b72890 Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Wed, 19 Nov 2008 14:31:31 +0000 Subject: [PATCH] Add more description of what "round" does, from the H98 report --- GHC/Real.lhs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 1.7.10.4