Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why does 0.33 not equal 1/3?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Why does 0.33 not equal 1/3?
Divers
Thread ID:
00669276
Message ID:
00669276
Vues:
36
I am running VFP6 sp3 and I am having a problem. I enter the following in the command window:

x=0.33
y=1/3
?x=y

When I test x=y, I get .F.? With deciamls set to 2, both x and y return 0.33, but yet compare false. I have set exact off. Can anyone explain what I am missing?

Kind Regards,

Mat
Matthew Kennedy
Decision Support Technology Inc.

"I try to take one day at a time, but sometimes several days attack me all at once." ~ Ashleigh Brilliant

New Jersey Dot Net User Group
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform