Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Request code
Message
 
 
À
15/09/2008 06:27:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP
Network:
Windows 2008 Server
Database:
Visual FoxPro
Divers
Thread ID:
01347514
Message ID:
01347563
Vues:
27
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--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform