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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only