Round()
Return a numeric value rounded to a specified number of digits.
Syntax
Round(<nNumber>, <nDecimals>) --> nRounded
Arguments
<nNumber> --> is the numeric value to round.
<nDecimals> --> defines the number of decimal places to retain. Specifying a negative <nDecimals> value rounds whole number digits.
Returns
Round() returns a numeric value.
Description
Round() is a numeric function that rounds <nNumber> to the number of places specified by <nDecimals>. Specifying a zero or negative value for <nDecimals> allows rounding of whole numbers. A negative <nDecimals> indicates the number of digits to the left of the decimal point to round. Digits between five to nine, inclusive, are rounded up. Digits below five are rounded down.
Examples
Round(5.2, 0)
* Returns: 5
Round(9.99, 2)
* Result = 10.00
____________________________
Related Topics: