projects
/
ghc-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8827985
)
Add more description of what "round" does, from the H98 report
author
Ian Lynagh
<igloo@earth.li>
Wed, 19 Nov 2008 14:31:31 +0000
(14:31 +0000)
committer
Ian Lynagh
<igloo@earth.li>
Wed, 19 Nov 2008 14:31:31 +0000
(14:31 +0000)
GHC/Real.lhs
patch
|
blob
|
history
diff --git
a/GHC/Real.lhs
b/GHC/Real.lhs
index
da6053e
..
aa00ccb
100644
(file)
--- 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
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
round :: (Integral b) => a -> b
-- | @'ceiling' x@ returns the least integer not less than @x@
ceiling :: (Integral b) => a -> b