how do you round a variable that is declared as a double?
Printable View
how do you round a variable that is declared as a double?
For example :
returns 4.0VB Code:
Math.Round(4.4)
Or you can specify how many decimal places like:
VB Code:
Math.Round(57.985736632, 2) 'for 2 decimal place rounding