Syntax
$TRUNC(expression [,n])
$TRUNC()
Required.
expression
Required. The numerical expression that is to be truncated.
n
Optional. n is an integer indicating the number of digits
to display after the decimal point.
top
Example
$TRUNC(123.4545, 2) result: 123.45
$TRUNC(123.4545, -2) result: 100
$TRUNC(123.9994, 3) result: 123.999
$TRUNC(123.9995, 3) result: 123.999
top
|