Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BUG: Deterministic function return not deterministic val
Message
 
 
À
16/10/2003 06:06:54
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00838784
Message ID:
00839255
Vues:
27
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform