Friday, August 13, 2010

Visual Basic String Function : Round

Purpose : Round returns a number that is rounded based on a specified decimal placement value.

Syntax :
Round ( expression [ , numdecimalplaces ] )

expression : A numeric value that is to be rounded.
numdecimalplaces : A number indicating how many numbers to the right of the decimal will be included in the rounding.

lValue = Round ( 186232.90260 , 3)

The number value that is stored in iValue is 186232.903 and if numdecimalplaces argument is nothing then value is 186233.

No comments:

Post a Comment