Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Where currency can play an ugly joke
Message
 
 
À
15/02/2005 16:15:34
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00986817
Message ID:
00987290
Vues:
53
Fabio,

>David, not mixed potatoes with tomatoes, please.

That's exactly what you were doing. I was merely pointing out that one needs to understand where binary representation conversions are taking place and how those conversions affect the overall result. Since 1 / 3 is an infinitely repeating decimal value, and we don't have infinite bits to store it, there will be round off errors.

It's a fact of life on binary computers, it doesn't do you any good to gripe about it every month or so.

>On VFP the issue happen when the multiplication is done,
>and VFP do a implicit conversion IEEE float to currency.
>On SQL is the division of two integer that return a integer zero,
>and none conversion is done.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform