|
-
Sep 9th, 2008, 03:29 AM
#1
Thread Starter
Junior Member
Rounding up problem vb.net
Ive been searching the forum for an easy way to round numbers but i couldnt find what i was looking for.
lets say if i have a variable and i want to round it up to the closest number so that for example 1.02 = 2, 3.6 = 4, 1.5=2 etc
is there any easy way of doing this without lots of code?
cant really get the round function to work the way i want, i must be doing something wrong and when i try to fix it - it justresults in more and more code. There must be a really easy way of doing this since it is a quite common thing you need?
when answering prtend your helping a 5 year old since im really new to programming and vs 2008.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|