Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Rounding a number to nearest 50, 100 etc
Message
De
29/03/2005 08:40:21
Walter Meester
HoogkarspelPays-Bas
 
 
À
29/03/2005 08:06:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
00999639
Message ID:
00999652
Vues:
22
This message has been marked as a message which has helped to the initial question of the thread.
>Hi,
>
>Can anyone advise me of the best way to round numbers like this :-
>
>1118 -> 1100
>1598 -> 1600
>1608 -> 1600
>
FUNCTION RoundToNearestX(nValue, nX)

RETURN ROUND(nValue /nX,0) * nX
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform