Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How You deal with VFP Rounding BUG
Message
 
À
22/11/2007 19:29:13
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01270811
Message ID:
01270860
Vues:
25
Hi Vladimir,

>I am interesting in what is the best practice to deal with VFP rounding in calculation proble.

Actually, this has nothing to do with rounding. The problem is that 550000.815 is not a number you can store in a floating point value which uses a base of 2. That's the same as trying to display 2/3 accurately with a base of 10. You can see this without any multiplication and rounding by just printing:
? 550000.8150000000000000000000000000
--
Christof
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform