JavaScript - Division By Zero

javascript

In JavaScript, the division operator produce a noninteger result even if both 
operands are integer.  This is because JavaScript only have one number type,
and that is represented as floating point.  This is also the reason why if we
divide a number by zero, we may not get an exception.  Most likely, we will get
Infinity or -Infinity
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License