You copied the Doc URL to your clipboard.


Defined in float.h, the _statusfp() function is provided for compatibility with Microsoft products. It returns the current value of the exception sticky flags.

You can use the _controlfp() argument macros, for example _EM_INVALID and _EM_ZERODIVIDE, to test bits of the returned result.

The function prototype for _statusfp() is:

unsigned _statusfp(void);


This function requires you to select a floating-point model that supports exceptions. For example, --fpmode=ieee_full or --fpmode=ieee_fixed.
Related reference