Page 1 of 1

Another problem with division by zero

Posted: Wed Mar 23, 2011 7:08 am
by bobshackleton
I'm running into a problem that GeoffC posted on as well on October 8, but your suggested solution doesn't seem to work. For a calculation using a series qipdenreqc that has several elements set to zero, I write:

Code: Select all

series pipdenreqc = ipdenreqc / @recode(qipdenreqc = 0.0 , na , qipdenreqc)


but still get back a 'division by zero' error, even though this seems to be identical in form to your suggested solution for GeoffC. Any ideas? Thanks.

Re: Another problem with division by zero

Posted: Wed Mar 23, 2011 7:13 am
by bobshackleton
Sorry to bother you. Just solved the problem - program was jumping to another line that looked very similar but still had a problem.