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

No Bug here,

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

? p * (t/100)
Returns 4.734975 which will round to 4.73


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

? p * (t/100)
Returns 4.7350 due to fixed decimals in currency which will round to 4.74


>
> CORRECTLYreturns 4.74!!!!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform