Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Rounding to a decimal
Message
De
10/09/2002 16:06:30
 
 
À
10/09/2002 14:50:34
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00698965
Message ID:
00699030
Vues:
19
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform