mathLib.ceiling

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


sysLib.ceiling syntax diagram

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.

numericItem

Any numeric or HEX item, as described in Mathematical (system words).

Example

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

Related reference
Mathematical (system words)