Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Currency vs. Numeric
Message
 
To
30/08/1999 11:51:10
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00259204
Message ID:
00259227
Views:
14
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform