Math Error Constants

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.




Argument to function is outside domain of function.


Result is too large to be represented in function's return type.


Partial loss of significance occurred.


Argument singularity: argument to function has illegal value. (For example, value 0 is passed to function that requires nonzero value.)


Total loss of significance occurred.


Result is too small to be represented.

Community Additions

© 2015 Microsoft