Round up to Whole Number Using VB Round() Function

Demonstrates the round() function usage to round up numeric values

The VB round() function, by default rounds to the nearest whole number based on the following:

10.00 through 10.50 = 10
10.51 through 10.99 = 11

There are scenarios where you want to round up all decimal values to the nearest whole number. Based on the above criteria, adding 0.5 to any numeric value with a decimal will cause the round() function to round up. For example:

10.00 + .50 = 10 round(10.5)
10.10 + .50 = 11 round(10.6)
10.90 + .50 = 11 round(11.4)

The attached tasks will demonstrate the round() function usage to round up numeric values.

Task Category:

Functions (Basic)