Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
When to choose currency data type?
Message
 
À
20/08/2009 13:01:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01419279
Message ID:
01419463
Vues:
81
I never use currency, because in our applications we need to be conscious about when we round intermediate results. Currency prevents this and frequently forces you to use NTOM() and MTON().

From a historical perspective: Most European developers got burned when they used currency about ten years ago when the Euro was introduced. Law requires that all calculation involving Euro and the former currency have to be done wit six significant digits. For the German currency that meant 5 significant decimal places, six for the Irish Pound.
--
Christof
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform