RAD function: round

A RAD function that rounds up, in the positive direction, to the nearest specified number of decimal places.

Function

round

Format

round(number,n)
Parameters

The following parameters are valid for the round function:

Parameter Description
number The number to round.
n The number of decimal digits to use when rounding. This number can be any input that equates to a numeric value, such as an expression, a variable, or a number.

Example

$a = round(3.47,1)
$a = 3.5 $a = round(3.53,1) $a = 3.5 $a = round(3.45,1) $a = 3.5 $a = round(-3.45,1) $a = -3.4 $a = round(100/30,2) $a = 3.33 $a = round(‘1/19/96 06:19:34’,0) $a = ‘1/19/96 06:20’