Floating-Point Exception: Divide by 0, Domain or Overflow

From RAD Studio
Jump to: navigation, search

Go Up to Floating-Point Exceptions

These exceptions result from a floating-point operation for which the result is not finite:

  • Divide by 0 means the result is +INF or -INF exactly, such as 1.0/0.0.
  • Domain means the result is NAN (not a number), like 0.0/0.0.
  • Overflow means the result is +INF (infinity) or -INF with complete loss of precision, such as assigning 10+200*10+200 to a double.