Module:Sandbox/Lemondoge/Calc/doc

Usage
Performs a calculation.

Examples
returns

returns

returns

Error detection
The "times" function (but not the VERY similar "multiplication" function) will return a error like this: "", if the second parameter is 0, unless the third parameter is set to 1. This works by using the code below.

Anti-not-a-number mechanism
The "division" function (and it's similar "div" function) will normally return "" if all 3 parameters are set to 0, but if the third parameter is 1, it will return "" instead. This works with the code below: