Versions Compared

Key

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

...

Info
titleAvailability

This routine is available since starting with katl-commons 2.5.

Syntax

...

floor(number, significance)


Description

...


Excerpt

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


Parameters

...

ParameterTypeRequiredDescription
numberNumberYesThe numeric value you want to round.
significanceNumberYesThe multiple to which you want to round.

Return type

...

number

Example

...

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

...

         a= 4;

         b= -2;

...

 Notes

  • If number is positive and significance is negative, FLOOR returns the NaN  value.

 

See

...

also

Filter by label (Content by label)
showLabelsfalse
showSpacefalse
cqllabel = "math_routines"
labelsmath_routines