Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Any numeric result is possible ?
Message
De
15/10/2003 03:56:02
 
 
À
14/10/2003 14:11:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00838576
Message ID:
00838781
Vues:
30
Hi Fred,

-----
dVar1 = DATE()
dVar2 = dVar1 + 0.01
? dvar1, dvar2 && look the same
? dvar1=dvar2 && .F.
-----

No, this is normal for Foxpro ( see identical value for different value).

And i can see difference:
dVar1 = DATE()
dVar2 = dVar1 + 0.01
? DTOT(dvar1), DTOT(dvar2)  && i see difference
My message is for the contrary problem:
CLEAR
SET DECIMALS TO 18
SET FIXED ON
lnDiff = {^2000-03-20 11:31:00} - {^2000-03-20 10:25:00}
zz=3959.999965131283

* variables are equal
? lnDiff=zz             

* same deterministic function INT(),
* with same input value return different result !!!
? INT(lnDiff)=INT(zz)
This is out of any programming logic.

Fabio
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform