Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Where currency can play an ugly joke
Message
 
 
To
15/02/2005 16:15:34
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00986817
Message ID:
00987290
Views:
54
Fabio,

>David, not mixed potatoes with tomatoes, please.

That's exactly what you were doing. I was merely pointing out that one needs to understand where binary representation conversions are taking place and how those conversions affect the overall result. Since 1 / 3 is an infinitely repeating decimal value, and we don't have infinite bits to store it, there will be round off errors.

It's a fact of life on binary computers, it doesn't do you any good to gripe about it every month or so.

>On VFP the issue happen when the multiplication is done,
>and VFP do a implicit conversion IEEE float to currency.
>On SQL is the division of two integer that return a integer zero,
>and none conversion is done.
df (was a 10 time MVP)

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

Click here to load this message in the networking platform