Chapter Contents

Previous

Next
feclearexcept

feclearexcept



Clear floating point exceptions

Portability: C99


SYNOPSIS
DESCRIPTION
RETURN VALUE
CAUTIONS
RELATED FUNCTIONS
SEE ALSO


SYNOPSIS

   #include <fenv.h>

   void feclearexcept(int excepts);


DESCRIPTION

feclearexcept is used to clear specified exception flags in the current floating-point environment. The argument specifies the flags to be cleared as the sum of one or more of the exception names defined in fenv.h.


RETURN VALUE

feclearexcept has no return value.


CAUTIONS

feclearexcept has no effect when called from a function whose default floating-point format is hexadecimal, that is, one compiled without the bfp option.

A program which calls feclearexcept must use the standard FENV_ACCESS pragma in an enclosing scope, or the effects are unpredictable.


RELATED FUNCTIONS

fegetexceptflag, feraiseexcept, fesetexceptflag, fetestexcept


SEE ALSO

"Mathematical Functions" in Chapter 2, "Function Categories"


Chapter Contents

Previous

Next

Top of Page

Copyright © 2004 by SAS Institute Inc., Cary, NC, USA. All rights reserved.