Detect division by zero: Difference between revisions

Line 360:
 
=={{header|J}}==
Divide by zero is not an error in J. It results in infinity which is represented by an underscore ( <code>_</code> ), except that [http://www.jsoftware.com/papers/eem/0div0.htm| 0 divided by 0 is defined to behave the result zero] (mathematically speaking any number is a valid result for 0 divided by 0, because 0 times any number is zero).
 
See [http://www.jsoftware.com/help/dictionary/d030.htm J Dictionary page on infinity]
6,962

edits