Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Result of Division of 0 by 0
Message
 
À
26/01/2007 14:46:41
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:
01189776
Vues:
9
>Details:
>x=0
>y=0
>z=x/y
>In this case z evaluates to < 0
>
>x=1
>y=0
>z=x/y
>In this case z evaluates to > 0
>
>In both cases z would be represented by a series of '*'.
>
>Question: Why in one case does it evaluate to < 0 and in the other evaluate to > 0?
>
>Question: In VFP why is an error not generated by 0/0 or any division by 0.


OOO,
I just see what you mean.
BUT AFAIK VFP has no error message "Divide by zero" (except for MOD() function). You must have "Field numeric overflow" if you put that value in a table. Why one of the results is greater than zero but other is smaller, hmmm that is question to VFPT.
But if you ask me that is something like NULL it is not greater, not smaller not even equal to zero. It is just "Don't know" :o)
In my old CLIPPER days CA even suppress that error and I have 0 as result.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform