Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Div by zero musings.
Message
De
20/11/1998 10:42:43
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, Royaume Uni
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Div by zero musings.
Divers
Thread ID:
00159730
Message ID:
00159730
Vues:
63
OK, any comments on this?

I have an app that allows users to enter formulae, and I am trying to capture the results of a Div by 0 before the app tries to store the result.

This seems reasonable
? (1/0) = (1000/0)
.T.

So, why is this any different
x = (22* 0) / ( 0 * 92)
y = (1/0)
? x = y
.F.

Give me a good old Div by zero error any day.
Regards
Mark

Microsoft VFP MCP
Menulib - OO Menus for VFP www.hidb.com/menulib
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform