Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Info
titleAvailability

This routine is available starting with katl-commons SIL Engine™ 2.5.

Syntax

floor(number, significance)

...

Excerpt

Rounds number down, toward zero, to the nearest multiple of significance.


Parameters

ParameterTypeRequiredDescription
numberNumberYesNumeric value you want to round to.
significanceNumberYesMultiple value you want to round to.

Return type

number

Example

Code Block
number a = floor(4.5, 2);
print("a= " + a);
number b = floor(-2.5, -2);
print("b= " + b);

...