roundDown()

Synopsis

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 .

Syntax

roundDown ( n As Number, _
            i As Number ) As Number 
Argument Type Description
n Number The input number.
i Number Increment to round to.

Example 1

Intent >roundDown(5.73, 0.25) 
--> 5.5 

Example 2

Intent >roundDown(5.73, 0.1) 
--> 5.7

Example 3

Intent >roundDown(-0.37, 0.1) 
--> -0.4 

Example 4

Intent >roundDown(376.9, 10) 
--> 370.0