Safe Haskell | Safe-Inferred |
---|

- towardZero :: (Integral b, RealFrac a) => a -> b
- towardInf :: (Integral b, RealFrac a) => a -> b
- towardNegInf :: (Integral b, RealFrac a) => a -> b
- awayFromZero :: (Integral b, RealFrac a) => a -> b
- nearestTowardZero :: (Integral b, RealFrac a) => a -> b
- nearestTowardInf :: (Integral b, RealFrac a) => a -> b
- nearestTowardNegInf :: (Integral b, RealFrac a) => a -> b
- nearestAwayFromZero :: (Integral b, RealFrac a) => a -> b
- nearestBanker :: (Integral b, RealFrac a) => a -> b
- isHalf :: RealFrac a => a -> Bool

# Documentation

towardZero :: (Integral b, RealFrac a) => a -> bSource

Round toward zero (truncate).

towardNegInf :: (Integral b, RealFrac a) => a -> bSource

Round backwards (floor).

awayFromZero :: (Integral b, RealFrac a) => a -> bSource

Round away from zero (ceiling if positive, floor otherwise).

nearestTowardZero :: (Integral b, RealFrac a) => a -> bSource

Round torwards zero (if half go towards zero, otherwise up to 1).

nearestTowardInf :: (Integral b, RealFrac a) => a -> bSource

Same as nearestTowardZero but to infinity instead of zero.

nearestTowardNegInf :: (Integral b, RealFrac a) => a -> bSource

Same as nearestTowardZero but towards negative instead of zero.

nearestAwayFromZero :: (Integral b, RealFrac a) => a -> bSource

Same as nearestTowardZero but rounds away from zero (by positive or negative).

nearestBanker :: (Integral b, RealFrac a) => a -> bSource

Round up (round).