mathLib.floor

The system function mathLib.floor returns the largest integer not greater than a specified number.


mathLib.floor syntax diagram

result

Any numeric or HEX item, as described in Mathematical (system words). The largest integer not greater thannumericItem 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.6;
  result = mathLib.floor(myItem); // result = 4

Related reference
Mathematical (system words)