Table plus |
---|
applyColStyleToCell | true |
---|
heading | 0 |
---|
columnTypes | s,s,s,s |
---|
multiple | false |
---|
columnAttributes | style="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold, |
---|
enableSorting | false |
---|
|
Syntax | ceiling(number, significance) | Package | | Alias | | Pkg Usage | | |
Description
Excerpt |
---|
|
Returns number rounded up, away from zero, to the nearest multiple of significance. |
Returns number rounded up, away from zero, to the nearest multiple of significance.
...
Table plus |
---|
applyColStyleToCell | true |
---|
columnTypes | s,s,s,s |
---|
heading | 0 |
---|
multiple | false |
---|
enableSorting | false |
---|
|
Parameter name | Type | Required | Description |
---|
number | Number | Yes | Numeric value you want to round. | significance | Number | Yes | Multiple you want to round to. | |
Return Type
Number
Example
Prints:
Code Block |
---|
number a = ceiling(2.5, 1);
print("a= " + a);
number b = ceiling(-2.5, -2);
print("b= " + b); |
Prints:
a= 3;
b= -4;
Note |
---|
If number is positive and significance is negative, ceiling returns the NaN value. |
...