It would be useful to be able to tell if a divide-by-zero has occurred within a call to $calc() though since it isn't always feasible to check the values to be calculated beforehand.

If returning $null or some other value indicating an error from $calc() itself isn't possible for practicality or backwards compatability purposes perhaps a $divzero identifier that could be checked after a call to $calc() could be made available instead.


Spelling mistakes, grammatical errors, and stupid comments are intentional.