Round

Round(Number a, integer b)

This function is used to round to a specified scale determined by argument b for Double value a.

Parameters

Return value

The return value is a Number.

Example

The return value of the following statement is 2.46.

Round(2.4576, 2)

Round(Number a)

This function returns the integer portion after a specified number has been rounded.

Parameter

a - A Double value.

Return value

The return value is an Integer.

Example

The return value of the following statement is 3.00.

Round(2.754)

Round(Number a, integer b, integer c)

This function is used to round to a specified scale determined by argument b and a specified rounding mode determined by argument c for Double value a.

Parameters

Return Value

The return value is a Number.

Example

The return value of the following statement is 2.03.

Round(2.021, 2, 0)

Round (Number a, Integer b, String c)

This function is use to round to a specified scale determined by argument b using the rounding mode c.

Parameters

Return Value

The return value is a number.

Example

The return value of the following statement is 123.457.

Round(123.4567, 3, 'UP')

Note: The digits of the decimal fraction of the rounded number must be bigger than the scale specified in the formula.