Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BUG: Deterministic function return not deterministic val
Message
 
 
To
16/10/2003 06:06:54
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00838784
Message ID:
00839255
Views:
26
Fabio,

>The problem it not this.

Yes, it is. You seem to not understand the floating point binary representation and how it is converted to decimal display.

It goes back to your thread from a few weeks ago complaining about very small numbers not being equal to 0.

It works as expected if you SET FIXED OFF. Because the difference between your two datetimes is exactly 3960 not 3959.999965131283.

You setting a memvar to a value of 3959.999965131283 is not necessarily the exact same bit pattern as what a independent calculation will result in. It's like expecting the lines of code below to print .T.

x = 0.333333333333
y = 1.0 / 3.0
? x = y

when they are in fact not the same value.


>To me it does not interest the value of lnDiff, it origin, ....
>
>My interest is this:
>
>
>i have two variable, equal value, equal type, apply a deterministic
>function and get a not deterministic result !
>
>
>Any programming enviroment that do this is bad.
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