...
Info | ||
---|---|---|
| ||
This routine is available since starting with katl-commons 2.5. |
Syntax
...
ceiling(number, significance)
Description
...
Excerpt |
---|
Returns number rounded up, away from zero, to the nearest multiple of significance. |
Parameters
...
Parameter | Type | Required | Description |
---|---|---|---|
number | Number | Yes | The numeric value you want to round. |
significance | Number | Yes | The multiple to which you want to round. |
Return type
...
number
Example
...
Code Block |
---|
number a = floor(2.5, 1); print("a= " + a); number b = floor(-2.5, -2); print("b= " + b); |
Prints:
a= 3;
b= -4;
...
Notes
- If number is positive and significance is negative, ceiling returns the NaN value.
See
...
also
Filter by label (Content by label) | ||||||||
---|---|---|---|---|---|---|---|---|
|