Ironic error message
by Colin Adams (modified: 2007 Mar 08)
- Tags:
- IEEE
Dividing a DOUBLE by zero produces no error. This is because IEEE defines it to produce positive infinity (hm.).
Dividing an INTEGER by zero results in an exception. Code 5 in ISE 5.7. Ironically, the description of Code 5 is "Floating point exception".
Portability
Because on Unix platforms you get this exception, we made it do the same on Windows.
Fine
I'm very happy that an exception occurs. I just thought it funny that it is classed as a floating-point exception.