Solitaire

Math.Ceiling(value) is the way to go if you want to round up to the next higher integer. If you want to use a decimal value, then multiply by 10 to get the value to the first place after the decimal point and then divide after using the Ceiling function:

Dim rnum, num2 As Double

Dim num As Double = 8.25

rnum = Math.Ceiling(num)

Console.WriteLine(rnum) 'will return 9

num2 = num * 10

rnum = Math.Ceiling(num2) / 10

Console.WriteLine(rnum) 'will return 8.3

To find the 2nd place after the decimal point, multiply and then divide by 100, etc.

--------------------------------------------

Option Strict should ALWAYS be turned on, configured that way in the IDE for all projects. Many shops require it. If you plan to share code with C# programmers or wish to learn C# at any time in the future, it is absolutely essential for Option Strict to be On. C# is always very strict, even more so than VB with Option Strict On, so just get used to it.

PS: Option Strict is off by default in all versions of VB, not just the Express version.