Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strange and dangerous behaviour
Message
From
19/10/2004 12:29:25
 
 
To
19/10/2004 12:22:43
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00952515
Message ID:
00952691
Views:
7
Sorry Agnes,
I do not want to take it with you, but I would not want that the VFPT created some alibi.
Can MSSQL and .NET calculate 0.1 exactly ? yes.
I would prefer that it it could make also VFP.

Fabio

>Fabio,
>
>I have argued about that with you before and AFAIK there is no change. So we do not do this twice.
>
>The problem is not how something is stored but how it is calulated.
>
>Agnes
>>>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 translated 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