Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BUG ? BUG ? BUG ?
Message
De
11/08/1999 12:35:21
 
 
À
11/08/1999 05:36:20
Amit Abhangrao
Charmi Software Exports
Mumbai, Inde
Information générale
Forum:
Visual FoxPro
Catégorie:
Conférences & événements
Divers
Thread ID:
00252396
Message ID:
00252606
Vues:
11
Mallari --

This appears to be the result of converting decimal values which we read into binary format for calculation and conversion back. All computer languages which use a floating point format will exhibit this kind of behavior in such calculations.

A couple possible solutions:

Use the ROUND() function to the desired number of places (which can be tedious),

Use the currency data format if you are interested in 2 or 4 decimal digits of accuracy. These calculations undergo an automatic rounding in VFP.

Try the addition but prefix a $ sign -- or other currency marker. I found that the sum of the values equaled the values summed.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform