ZVON > References > Haskell reference
| Indexes | Syntax | >> Prelude << | Ratio | Complex | Numeric | Ix | Array | List | Maybe | Char | Monad | IO | Directory | System | Time | Locale | CPUTime | Random

Module: Prelude
Function: ceiling
Type: (RealFrac a, Integral b) => a -> b
Class: RealFrac
Description: returns the least integer not less than argument
Related: floor, properFraction, round, truncate
Keywords: ceiling
MATHWORLD Ceiling Function

Example 1

Input: ceiling 3

Output: 3

Example 2

Input: ceiling 3.7

Output: 4

Example 3

Input: ceiling 3.000001

Output: 4

Example 4

Input: ceiling (-4.999)

Output: -4