Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Round() giving different results
Message
De
12/12/2000 15:45:52
Mike Mattos
Nationwide Computers
Mississauga, Ontario, Canada
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00452446
Message ID:
00452502
Vues:
18
round() is a bit weird, I always try to set BOTH fields to the same accuracy, do all the multiplies first, then the divides, then round! And move the negatives out too, if possible!

But heck, FoxPlus Unix would round 0.5 to 1, and -.5 to 0, so the sum of .5 and -.5 was 1, not 0 . after that , anything is infinitely better than that!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform