how to round up a decimal numbers.. 5.63 = 6.00, 5.43 = 5.00
________
Montana medical marijuana dispensary
Printable View
how to round up a decimal numbers.. 5.63 = 6.00, 5.43 = 5.00
________
Montana medical marijuana dispensary
Do a little searching next time. Try google.
It's really simple, just Math.Round().
thanks. how about only numbers with decimal value of .00 returns it value..
5.00 = 5.00
5.63 = 6.00
5.43 = 6.00
sorry got no time in googling things.. thats why i just leave question here and try to check some answer if i have extra time.
________
Journey
No time to google? It would have taken less than 5 minutes to find the answer to your question, and it took 17 for me to give you the answer. Just googling "vb.net round decimal number" would of returned plenty of good solutions.
As for your next question, if the number will always end in ".00", since your rounding it, then just add it as a string using & ".00"
cant do that.. what i want is to round up a decimal whether it is < .5..Quote:
As for your next question, if the number will always end in ".00", since your rounding it, then just add it as a string using & ".00"
example: 5.10 will be 6.00 not 5.00..
________
DC MEDICAL MARIJUANA DISPENSARIES
This helps you :
http://www.vbforums.com/showthread.php?t=538887
thanks a lot..