Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Result of Division of 0 by 0
Message
 
À
26/01/2007 12:59:07
Calvin Smith
Wayne Reaves Computer Systems
Macon, Georgie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01189726
Message ID:
01189774
Vues:
7
x = 0
y = 0

z = x/y

z > 0 = .F.
z < 0 = .T.
z < -1 = .T.
z < -9999999 = .T.

It's a numeric field but can't be displayed (maybe its negitive infinity?). From a mathmatical standpoint - you can't divide by zero anyway - its supposed to be impossible. I'm suprised VFP doesn't give an error when you try to do that. Anyway I've always just checked for the possibilty in my code where I need to.
ICQ 10556 (ya), 254117
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform