Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Serious Error with Currency Data Type
Message
From
18/01/1999 17:46:55
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00177250
Message ID:
00177385
Views:
37
>>Calvin,
>>
>>According the the VFP5 help file:
>>
>>If you specify more than four decimal places in a currency expression, Visual FoxPro rounds to four places before evaluating the expression.
>>
>>So it's working as documented the 0.41116 is being rounded to 0.4112 before the expression is evaluated. You may have to take the currency numeric to get the precision you need during the operation.
>>
>>snip...

>Another case of failing to RTFM...just be glad we're not doing C - I'm in working today because someone failed to properly cast some pointers to structures before doing some (in theory) simple pointer math....


Well Ed, I reckon just because it works like the manual says doesn't make it right. 'Correct' maybe, but not 'right'. Doesn't this mean really that we should avoid the currency type? I do, :-), but for other reasons, like the way it displays in a grid.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform