Syntax
$ROUND(expression [,n])
$ROUND()
Required.
expression
Required. A valid numerical value. This can be a column in
a select statement that will return a numerical value.
n
Optional. n is an integer indicating the number of digits
to the right of the decimal. The default is 0.
top
Example
$ROUND(123.4545, 2) result: 123.4500
$ROUND(123.4545, -2) result: 100.0000
$ROUND(123.9994, 3) result: 123.9990
$ROUND(123.9995, 3) result: 124.0000
top
|