ROUND()
Rounds off a numeric expression.
Syntax
ROUND( <nNumber>,<nPlace> ) --> <nResult>
Arguments
<nNumber> Any numeric value.
<nPlace> The number of places to round to.
Returns
<nResult> The rounded number.
Description
This function rounds off the value of <nNumber> to the number of decimal places specified by <nPlace>. If the value of <nPlace> is a negative number, the function will attempt to round <nNumber> in whole numbers. Numbers from 5 through 9 will be rounded up, all others will be rounded down.
Examples
? ROUND( 632512.62541, 5 ) ? ROUND( 845414111.91440, 3 )
Compliance
Clipper
Platforms
All
Files
Library is rtl
Seealso
INT(), STR(), VAL(), SET FIXED
Pingback: Harbour All Functions – R | Viva Clipper !
Pingback: Harbour Math Functions | Viva Clipper !
Pingback: Harbour RG Summary | Viva Clipper !