Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Request code
Message
 
 
To
15/09/2008 06:27:56
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP
Network:
Windows 2008 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01347514
Message ID:
01347563
Views:
26
My mistake. I didn't notice the 'round up' part.
CLEAR

FOR i=8359 TO 8371
  ? i, RoundupTo10(i)
ENDFOR

FUNCTION RoundupTo10(tnValue)
RETURN ROUND(tnValue + 4.9,-1)
>Round() won't work for the first example - Ceiling is better - but works different for negative numbers
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform