RAD Studio
ContentsIndex
PreviousUpNext
Floating point error: Divide by 0 OR Floating point error: Domain OR Floating point error: Overflow (C++)

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.

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!