Rounding

The easiest way to round numbers is to use the Round pre-defined function.

Example VB code – round to 2 decimal places     show
Example VB code – round Π to 5 decimal places     show
Try it out:
Number of decimal places to round Pi to:


Back to index

mph@ghscomputing.co.uk

Updated 09 December 2018