Error trapping for multiprocessor systems: A primer
last update: 04/10/2003

Causes of FPEs

There are seven conditions that can cause FPEs on an IBM server. All of these conditions concern floating-point operations except integer overflow; integer overflow is also traced as an FPE. This section defines the seven conditions and a trap-enable option.

Underflow (UND)

One form of underflow exception is signaled by the creation of a tiny nonzero result between the minimum expressible exponent, which, because it is tiny, may cause some other exception later. The other form of underflow exception is signaled by an extraordinary loss of accuracy during the approximation of such tiny numbers by denormalized numbers.

Overflow (OV)

The overflow exception is signaled when what would have been the magnitude of the rounded floating-point result -- were the exponent range unbounded -- is larger than the destination format's largest finite number.

Divide by zero (ZERO)

The divide-by-zero exception is signaled on an implemented divide operation if the divisor is zero and the dividend is a finite nonzero number.

Invalid operand (INV)

The invalid operand exception is signaled when one or both of the operands are invalid for an implemented operation. The result (if not trapped) is NaN for floating-point numbers and not defined for fixed-point numbers.

Inexact result (INEX)

The inexact result exception is signaled when the rounded result of an operation is not exact or if it overflows without an overflow trap.

Imprecise (IMP)

This option checks for FPEs only on subprogram entry and exit. It is useful in than it has a minimal performance impact on the code.

Enable (EN)

This is a required option if using .qsigtrap (SIGTRAP). This allows SIGTRAP to process SIGFPEs.


Next page | Table of contents - TotalView primer

If you have questions about this document, please contact SCD Customer Support. You can also reach us by telephone 24 hours a day, seven days a week at 303-497-1278. Additional contact methods: consult1@ucar.edu and during business hours in NCAR Mesa Lab Suite 39.

© Copyright 2003. University Corporation for Atmospheric Research (UCAR). All Rights Reserved.

Address of this page: http://www.scd.ucar.edu/docs/trap.error/fpe.causes.html