I'm thinking about writing a simple function to handle all my division for my web application. The main reason is to catch division by 0 errors. I'm thinking I'll just return 0 when division by 0 is attempted.
Am I completely thinking wrong here?
The web application is very extensive and currently used by 5 different businesses. It records and processes over 10,000 different records every day. So saying stop dividing by zero is simply not a solution.