This is documentation for Mathematica 5, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

Documentation / Mathematica / Built-in Functions / Mathematical Functions / Numerical Functions /

Ceiling

FilledSmallSquare Ceiling[x] gives the smallest integer greater than or equal to x.

FilledSmallSquare Mathematical function (see Section A.3.10).

FilledSmallSquare Examples: Ceiling[2.4] LongRightArrow; Ceiling[2.6] LongRightArrow; Ceiling[-2.4] LongRightArrow; Ceiling[-2.6] LongRightArrow.

FilledSmallSquare Ceiling[x] can be entered in StandardForm and InputForm as x , AliasIndicatorlcAliasIndicator x AliasIndicatorrcAliasIndicator or \[LeftCeiling] x \[RightCeiling].

FilledSmallSquare Ceiling[x] returns an integer when x is any numeric quantity, whether or not it is an explicit number.

FilledSmallSquare Example: Ceiling[Pi^2] LongRightArrow.

FilledSmallSquare For exact numeric quantities, Ceiling internally uses numerical approximations to establish its result. This process can be affected by the setting of the global variable $MaxExtraPrecision.

FilledSmallSquare See Section 3.2.2.

FilledSmallSquare Implementation Notes: see Section A.9.4.

FilledSmallSquare See also: Floor, IntegerPart, Round, Chop.

FilledSmallSquare New in Version 1; modified in 3.