Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Currency vs. Numeric
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00259204
Message ID:
00259227
Vues:
15
>OK folks...
>
>What are the advantages of using Currency over Numeric? What are the disadvantages?
>
>Thanks,
>BOb
>
>Hackers says Numeric is converted to currency if you do a replace. I assume the decimal is rounded? Also, is it possible to have a Currency memory variable? How would you init it?
>
>yMyVar = $123 && ????????
>
>BOb

Hi Bob,

I had problems using currency fields in financial applicaton. Seems like internal rounding was not working as in supposed to do. Data were often 1 cent off. After I converted Currency fields to Numeric I didn't have any problems (no code was changed). I do not use the Currency fields since then.

Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform