Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strange and dangerous behaviour
Message
From
19/10/2004 10:44:58
 
 
To
19/10/2004 10:03:20
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00952515
Message ID:
00952625
Views:
6
>Alessio,
>
>You can not trust a computer in computing. Thats normal. This was the very first I ever learned about computing. It needs always a human brain to make sense out of it.
>The simplest reason is translating a decimal fraction into a binary one is imposiible, so a simple 0.1 is not that easy because a binary fraction as divided by 2 and 0.1 is 1/(2*5). This wil end up in 0b0.0001011111111111111111.....

Agnes.
1. With binary you can traslate any decimal fraction ( it is very simple to define a format with two binary integers ).

2. On VFP you can use $0.1, it is write with binary sequence, and it is traslated exactly.

Have VFP decimals ? No! Simple.

The not obvious thing is that, because VFP is not a scientific environment,
a developer expects that there are sure the decimals and optionals the double.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform