.. highlightlang:: us .. _ceil: ceil ==== .. index:: ceil .. us.tag ceil ENGLISH math-base Calculates the ceiling of a value. .. function:: r = ceil(m) .. us.return **Return Value** *r* is a matrix of the same dimension as *m*. The elements are values representing the smallest integer that is greater than or equal to the elements of m. .. us.params **Parameters** .. uparam:: m *m* is a real matrix. .. us.example **Example** :: * floor(2.8) 2.0000 * floor(-2.8) -3.0000 * ceil(2.8) 3.0000 * ceil(-2.8) -2.0000 * int(2.8) 2.0000 * int(-2.8) -2.0000 .. seealso:: :ref:`overview-mathematic`, :ref:`int`, :ref:`floor` :sub:`id-471648`