Floating-Point Exceptions

From RAD Studio
Jump to: navigation, search

Go Up to Exception handling Index

Floating-point exceptions that can occur in Delphi or C++ applications are listed in the following table.

Exception Class Description
System.SysUtils.EInvalidOp Undefined floating-point instruction or invalid mathematical operation.
For example, Sqrt(-1), ArcTan(10), 0/0, or Partial Loss of Precision.
System.SysUtils.EZeroDivide Floating-Point Exception: Divide by 0
System.SysUtils.EOverflow Floating-Point Exception: Overflow
System.SysUtils.EUnderflow Floating-Point Exception: Underflow

To mask these exceptions, use the SetExceptionMask procedure. See also: GetExceptionMask, SetExceptions, and TArithmeticException.


See Also