Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Serious Error with Currency Data Type
Message
 
 
To
18/01/1999 16:49:19
Calvin Smith
Wayne Reaves Computer Systems
Macon, Georgia, United States
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00177250
Message ID:
00177375
Views:
49
Calvin,

The help file says "currency expression" that means everything involved in the calculation, including decimal constants or memory variables. Yes, it is performing as documented. An so VFP is working opposite of your assumption. Like I, Ed and Christof have mentioned, if you need more precision you need to take the currency to a numeric before you multiply it, then convert it back.

>I appreciate your reply but please note that the decimal value in my example was a numerical and not a currency value. What I thougth would happen is that the currency value would be multiplied by the numerical and the result converted to a currency. What is happening is the numerical is being converted to a currency and then multiplied. Is this planned???
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform