Round                                                                                                      Function

 

ROUND(theNumber as Float , pos as Integer)

 

Description

Returns a float rounding the number in the pos decimal position by rounding up if the fraction following the pos digit is .5 or more or by truncating if the fraction is less than .5.

 

Example

Dim result as Float

Result=Round(22.1256, 2) 'result would be 22.13

Result=Round(7.12312, 3) 'result would be 7.123