Calc Builder Support

Calc Builder support
Public write access is disabled. Please login

division by zero 10.01.2014 01:35

I am trying to output a result from an equation and keep getting a "division by zero" error. None of the calculations results in zero in denominator. Please help.

Re: division by zero 10.01.2014 09:28

there must be a division by zero resulting at your code. We suggest to double-check your inputs, maybe you can comment out the division line and print the operands at the output to confirm they have the value expected.

Any typo at a name variable can also cause the value to behave as 0. For ex, with a field named input1

$result=100/$input_1; //this will cause a division by 0 error

Hope this helps, regards
Moonsoft Team
Are you satisfied with our products/services/support?
Please help us to keep improving, add a review at  joomla extensions site and  magento connect

Our clients' feedback