floor()

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

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

Related reference
EGL library MathLib

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