Math Error Constants


The new home for Visual Studio documentation is Visual Studio 2017 Documentation on

The latest version of this topic can be found at Math Error Constants.


#include <math.h>  

The math routines of the run-time library can generate math error constants.

These errors, described as follows, correspond to the exception types defined in MATH.H and are returned by the _matherr function when a math error occurs.

_DOMAINArgument to function is outside domain of function.
_OVERFLOWResult is too large to be represented in function's return type.
_PLOSSPartial loss of significance occurred.
_SINGArgument singularity: argument to function has illegal value. (For example, value 0 is passed to function that requires nonzero value.)
_TLOSSTotal loss of significance occurred.
_UNDERFLOWResult is too small to be represented.

Global Constants