Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Rounding Help Needed
Message
 
À
23/12/2003 16:59:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00861734
Message ID:
00861833
Vues:
24
Almost the same. Both function thinks little bit of different about which is the allowed grounding grade.

f.ex.

VFP ROUND(NN.123,-1) rounding is done to the nearest ten
F1 nround(NN.123,10,0) with this function you grade is too big and shoud be nround(NN.123,5,0)
F2 nround(NN.123,10,0) rounding is done to the nearest ten


I think yours code is much better. Anyhow the first one was a QD (quick and dirty) code to be a base of the possible solution. Excellent you find such a clever piece of solution. Thanks.

AT
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform