General information
Category:
Coding, syntax & commands
Environment versions
Network:
Windows 2003 Server
Yes, with currency calculations you need to be careful. As it is in VFP9 Help for currency data type:
*--------------------
If you specify more than four decimal places in a currency expression, Visual FoxPro rounds to the expression to four places before evaluating the expression.
*-------------
And for your example:
$5000.00 * 0.01099 = 55.00.
But:
$5.00 * 10.99 = 54.95
$5000.00 * 10.99 * 10^(-3)= 54.95
>Sorry.
>It happens when the data is currency (Y).
>
>Like $5000.00 * 0.01099 = 55.00.
>
>Thanks.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only