Returns the number n rounded up to the nearest increment i. This applies even when n is negative.
Use the floor(), ceiling(), or round() functions to convert a number into an Integer .
roundUp ( n As Number, _ i As Number ) As Number
Argument | Type | Description |
---|---|---|
n | Number | The input number . |
i | Number | The increment to round to. |
Intent >roundUp(5.73, 0.25) --> 5.75
Intent >roundUp(5.73, 0.1) --> 5.8
Intent >roundUp(-0.37, 0.1) --> -0.3
Intent >roundUp(376.9, 10) --> 380.0