The easiest way to round numbers is to use the Round pre-defined function.
Example VB code – round to 2 decimal places
show
result = Math.Round (answer, 2)
Example VB code – round Π to 5 decimal places
show
MsgBox ("Pi to 5 decimal places is " & Math.Round (Math.PI,5))