Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: PowerPC Numerics / Part 2 - The PowerPC Numerics C Implementation
Chapter 8 - Environmental Control Functions / Controlling the Exception Flags


feraiseexcept

You can use the feraiseexcept function to raise one or more floating-point exceptions.

void feraiseexcept (int excepts);
excepts
A mask indicating which floating-point exception flags should be set.
DESCRIPTION
The feraiseexcept function sets the floating-point exception flags specified by its argument. The argument may be one of the constants in Table 8-2 on page 8-6, two or more of these constants ORed together, or the constant FE_ALL_EXCEPT.

EXAMPLES
feraiseexcept(FE_OVERFLOW);         /* sets the overflow flag */
feraiseexcept(FE_INEXACT|FE_UNDERFLOW);
                        /* sets the inexact and underflow flags */
feraiseexcept(FE_ALL_EXCEPT);                /* sets all flags */

Previous Book Contents Book Index Next

© Apple Computer, Inc.
13 JUL 1996