Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dividing by zero
Message
De
22/04/2010 17:04:14
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01461337
Message ID:
01461613
Vues:
61
Of course to be complete we should take into account both the positive and negative NaN (not-a-number) values...
a = 1/0
b = -1/0
? a == b  && gives .F.
? a == (1/0)  && gives .T.
? a == (10000000/0)  && gives .T.
? b == (1/0)  && gives .F.
? a>b  && gives .T.
? a<b  && gives .F.
? (1/a) == (1/b)  && gives .T.
Hmm.. I don't know if there is a bult-in function to check for NaN values.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform