Imprimir
Categoria: Math

Avaliação do Usuário

Estrela inativaEstrela inativaEstrela inativaEstrela inativaEstrela inativa
 

Round()

Rounds off a numeric expression.
Syntax
Round( <nNumber>, <nPlace> ) --> <nResult>
Argument(s)
<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.
Example(s)
? Round( 632512.62541, 5 )
? Round( 845414111.91440, 3 )
Status
Ready
Compliance
This is CA-Cl*pper v5.2 compliant
Platform(s)
This is available on all platforms
File(s)
Library is core
See also

Int(), Str(), Val(), SET FIXED