System.FGetExceptFlag
Delphi
function FGetExceptFlag(Excepts: UInt32): UInt32;
C++
extern DELPHI_PACKAGE UInt32 __fastcall FGetExceptFlag(UInt32 Excepts = (unsigned)(0x3f));
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.pas System.hpp |
System | System |
Description
Retrieves whether the floating-point exception event flags specified by the Excepts
parameter are set.
Excepts
represents a combination of the following flags:
Constant |
---|
feeINEXACT |
feeUNDERFLOW |
feeOVERFLOW |
feeDIVBYZERO |
feeINVALID |
Excepts
specifies which exception event flags are to be retrieved. For example, if Excepts
is feeDIVBYZERO
and feeINVALID
, FGetExceptFlag only retrieves whether the feeDIVBYZERO
and feeINVALID
flags are set.
If Excepts
is 0, FGetExceptFlag returns 0.
Notes:
- The
Excepts
parameter and the function return values are different for each platform.
- In order to keep compatibility between different platforms, consider using GetExceptions and TArithmeticExceptions.