Visible to Intel only — GUID: GUID-8797E471-4BC1-45BC-96AD-9DED6BC3246C
Visible to Intel only — GUID: GUID-8797E471-4BC1-45BC-96AD-9DED6BC3246C
fpe
Allows some control over floating-point exception handling for the main program at runtime.
Syntax
Linux: |
-fpen |
Windows: |
/fpe:n |
Arguments
n |
Specifies the floating-point exception handling level. Possible values are:
|
Default
-fpe3 or /fpe:3 |
All floating-point exceptions are disabled. Floating-point underflow is gradual, unless you explicitly specify a compiler option that enables flush-to-zero. |
Description
This option allows some control over floating-point exception handling at runtime. This includes whether exceptional floating-point values are allowed and how precisely runtime exceptions are reported.
The fpe option affects how the following conditions are handled:
When floating-point calculations result in a divide by zero, overflow, or invalid operation.
When floating-point calculations result in an underflow.
When a subnormal number or other exceptional number (positive infinity, negative infinity, or a NaN) is present in an arithmetic expression.
When enabled exceptions occur, execution is aborted and the cause of the abort reported to the user. If compiler option traceback is specified at compile time, detailed information about the location of the abort is also reported.
This option does not enable underflow exceptions, input subnormal exceptions, or inexact exceptions.
IDE Equivalent
Visual Studio: Floating-Point > Floating-Point Exception Handling
Alternate Options
None