|
-
Jul 19th, 2009, 09:50 PM
#1
Thread Starter
Hyperactive Member
[RESOLVED] Decimal numbers..
how to round up a decimal numbers.. 5.63 = 6.00, 5.43 = 5.00
________
Montana medical marijuana dispensary
Last edited by rothj0hn; Feb 15th, 2011 at 01:55 PM.
-
Jul 19th, 2009, 10:07 PM
#2
Re: Decimal numbers..
Do a little searching next time. Try google.
It's really simple, just Math.Round().
-
Jul 19th, 2009, 10:34 PM
#3
Thread Starter
Hyperactive Member
Re: Decimal numbers..
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
Last edited by rothj0hn; Feb 15th, 2011 at 01:55 PM.
-
Jul 19th, 2009, 10:57 PM
#4
Re: Decimal numbers..
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"
-
Jul 20th, 2009, 12:23 AM
#5
Thread Starter
Hyperactive Member
Re: Decimal numbers..
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..
example: 5.10 will be 6.00 not 5.00..
________
DC MEDICAL MARIJUANA DISPENSARIES
Last edited by rothj0hn; Feb 15th, 2011 at 01:55 PM.
-
Jul 20th, 2009, 12:32 AM
#6
Fanatic Member
-
Jul 20th, 2009, 12:50 AM
#7
Thread Starter
Hyperactive Member
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
|