Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bug in currency data type? Someone Explain this one.
Message
From
20/07/2000 10:37:47
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Bug in currency data type? Someone Explain this one.
Miscellaneous
Thread ID:
00394894
Message ID:
00394894
Views:
43
Hi,

I was getting a bad amount in a tax calculation and tracked it to the following:

*******************************************
t = 7.25

p = 65.31
? ROUND(p * (t/100), 2)

CORRECTLY returns 4.73


* now - with p as currency
p = $65.31
? ROUND(p * (t/100), 2)

INCORRECTLY returns 4.74!!!!
******************************************

what the heck is this all about?

thanks,
Ken
Ken B. Matson
GCom2 Solutions
Next
Reply
Map
View

Click here to load this message in the networking platform