Out of cursisity is there a round funition in VB because I need to round an intiger up. I can trick the comptuer into doing it with a if than else loop.
here is the code that teacher gave us in the example. It works but I am thinking there is an easier way to do it I just can not find it.
Code: Select all
'Convert to an integer
IntStamps = Convert.ToInt64(Stamps)
'Rounding up if hte number of stamps is not exaclty divisible by 5
If Sheets / 5 - IntStamps <= 0 Then
txtStamps.Text = IntStamps
Else
txtStamps.Text = IntStamps + 1
End If