ceiling()

The system function MathLib.ceiling returns the smallest integer not less than a specified number.

  MathLib.ceiling(numericField mathLibNumber in)
  returns (result mathLibTypeDependentResult)
result
Any numeric or HEX item, as described in Mathematical (system words). The smallest integer not less than numericItem is converted to the format of result and returned in result.
numericField
Any numeric or HEX item, as described in Mathematical (system words).

Example

  myItem = 4.5;
  result = MathLib.ceiling(myItem); // result = 5

Related reference
EGL library MathLib

Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.