Floating point error: Divide by 0 OR Floating point error: Domain OR Floating point error: Overflow (C++)

From RAD Studio
Jump to: navigation, search

Go Up to Compiler Errors And Warnings (C++) Index

These fatal errors 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 1e200*1e200 to a double.
Personal tools
Newest Version: XE
In other languages