Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Where currency can play an ugly joke
Message
From
16/02/2005 04:07:46
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00986817
Message ID:
00987351
Views:
37
>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.

David,
infinite bits have none influence on this issue.

1/8192 is stored exactly with 0 bits !
and, of course:
? $8192*1/8192,$8192*(1/8192)
1/10 need infinite bits to store it in binary,
and, of course ....
? $10*1/10,$10*(1/10)
The issue is not on the right factor, but on the left fact ( the currency ).

I do not want more to answer to you, is useless.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform