Returns the number n rounded down 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 .
roundDown ( n As Number, _ i As Number ) As Number
Argument | Type | Description |
---|---|---|
n | Number | The input number. |
i | Number | Increment to round to. |
Intent >roundDown(5.73, 0.25) --> 5.5
Intent >roundDown(5.73, 0.1) --> 5.7
Intent >roundDown(-0.37, 0.1) --> -0.4
Intent >roundDown(376.9, 10) --> 370.0