Round Function

Top  Previous  Next

Returns the rounded value.

 

Syntax

 

value = Round( expression1, decimals )

 

Parameters

expression1

 

any numeric expression

decimals

 

number of decimals to round

 

 

 

returns

 

the lowest value of the list of expressions

 

Examples

 

value = Round( 5.123456, 2 )                ' Returns 5.12

value = Round( 1.25 + 1.5, 1 )                ' Returns 2.8

value = Round( 12345, -2 )                        ' Returns 12300