Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Rounding to a decimal
Message
From
10/09/2002 16:06:30
 
 
To
10/09/2002 14:50:34
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00698965
Message ID:
00699030
Views:
23
Jeff:

I do not understand exactly what do you mean nearest .25 or nearest.10, but take a look at this:

ceiling(nValue*10)/10

example :

nValue = 5.44
? ceiling(nValue*10)/10 && 5.5

nValue = 5.67
? ceiling(nValue*10)/10 && 5.7

nValue = 5.00
? ceiling(nValue*10)/10 && 5.0


mandy
Previous
Reply
Map
View

Click here to load this message in the networking platform