Looking for the documentation on the newest versions of SIL Engine and the Simple Issue Language for Jira 8? Click here and leave these dusty old pages behind!
Availability
This routine is available starting with SIL Engine™ 2.5.
Syntax
floor(number, significance)
Description
Rounds number down, toward zero, to the nearest multiple of significance.
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
number | Number | Yes | Numeric value you want to round to. |
significance | Number | Yes | Multiple value you want to round to. |
Return type
number
Example
number a = floor(4.5, 2); print("a= " + a); number b = floor(-2.5, -2); print("b= " + b);
Prints:
a= 4;
b= -2;
Notes
- If number is positive and significance is negative, FLOOR returns the NaN value.
See also