Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ROUND()
Message
From
13/03/2000 13:47:08
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00342568
Message ID:
00345057
Views:
32
>Maybe you missed this or I didn't explain it well enough. Since you want to round your value assuming only one decimal place, you can add 1/2 of the next decimal place unit to the number. In your case that would be .05 to be added.
>
>So 9.46 + .05, rounded to 0 places would yield 10. 9.44 + .05 would still yield 9, while 9.45 + .05 would yield 10.
>
>ROUND(7/74*100+.05,0) --> 10

Why is this thread continuing to go over the same areas again and again? I think Kevin already has all the answers he needs. Or am I wrong, Kevin?
David Stevenson, MCSD, 2-time VFP MVP / St. Petersburg, FL USA / david@topstrategies.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform