[thelist] catching "Division by Zero" in PHP

Luther, Ron Ron.Luther at compaq.com
Thu Nov 15 08:39:00 CST 2001

Hi Jon,

As usual, there are a bunch of ways to do this ...

How 'bout something simple ... like checking the divisor before you hit
your main equation to see if it is == zero and branching on the outcome?



-----Original Message-----
From: jon steele [mailto:jjsteele22 at yahoo.com]

I'm doing some math with php, and I want to detect when a division by
zero warning occurs, and stop the program outputting a message. 

More information about the thelist mailing list