|
Karl wrote: > > If either is 0 the answer is 0 so why do the calculation. > That is not exactly the true. Division by zero is not defined, and that's why EVAL a=x/0 will cause error condition (I think status code is 102). Zero divided by any number (<>0) is zero. Another common mistake is attempt to calculate SQRT from negative number (for example, when standard deviation is used to make business decision). Again, *PSSR helps partially, but we should hope that Hans will keep his word (or promise, I don't remember) and do something about it. :))) Vanja Jovic > ----- Original Message ----- > From: Vanja Jovic <vanja@ecn.ab.ca> > To: <MIDRANGE-L@midrange.com> > Sent: Saturday, October 16, 1999 12:34 AM > Subject: Re: How to process EVAL error > > > It is poor solution, but (for now), you can use *PSSR to check for the > > EVAL errors. > > > > "Karl Lauritzen Jr." wrote: > > > > > > Suppose its really Answer = A/B > > > > > > I may be a simpleton but I would do > > > > > > IF a <> 0 and B <> 0 > > > EVAL Answer = A/B > > > ENDIF > > > > ...and why would you check for a<>0 ? > > > > Vanja > > +--- > > | This is the Midrange System Mailing List! > > | To submit a new message, send your mail to MIDRANGE-L@midrange.com. > > | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. > > | To unsubscribe from this list send email to > MIDRANGE-L-UNSUB@midrange.com. > > | Questions should be directed to the list owner/operator: > david@midrange.com > > +--- > > +--- > | This is the Midrange System Mailing List! > | To submit a new message, send your mail to MIDRANGE-L@midrange.com. > | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. > | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com. > | Questions should be directed to the list owner/operator: david@midrange.com > +--- +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to MIDRANGE-L@midrange.com. | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.