Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Minus Zero
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00983821
Message ID:
00984012
Vues:
10
Borislav,
if ( abs( numb_1 - numb_2 ) <= EPSILON ) )
where EPSILON is a small number that means these two numbers are close enough to be the same in the context of the data values.

>As Hilmar said the difference migth be in 7th digital after decimal point. I always compare two numbers with rounding:
>
>IF ROUND(numb_1,2) == ROUND(numb_2,2)
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