roundUp()

Synopsis

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 .

Syntax

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

Example 1

Intent >roundUp(5.73, 0.25) 
--> 5.75 

Example 2

Intent >roundUp(5.73, 0.1) 
--> 5.8 

Example 3

Intent >roundUp(-0.37, 0.1) 
--> -0.3 

Example 4

Intent >roundUp(376.9, 10) 
--> 380.0