Ironic error message

by Colin Adams (modified: 2007 Mar 08)

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".

Comments
  • Manu (10 years ago 9/3/2007)

    Portability

    Because on Unix platforms you get this exception, we made it do the same on Windows.

    • Colin Adams (10 years ago 9/3/2007)

      Fine

      I'm very happy that an exception occurs. I just thought it funny that it is classed as a floating-point exception.