# Math Error Condition Macros

## MATH_ERRNO

This macro has the value 1 and is usable with math_errhandling to determine the implementation response to a domain error.

Include

<math.h>

Value

The value 1.

## MATH_ERREXCEPT

This macro has the value 2 and is usable with math_errhandling to determine the implementation response to a domain error.

Include

<math.h>

Value

The value 2.

## math_errhandling

This is a value that can be used to determine if errno will be set or an exception will be raised on a domain error. If the value of math_errhandling & MATH_ERRNO is true, then errno will be updated with the appropriate error number. If the value of math_errhandling & MATH_ERREXCEPT is true, then an invalid floating-point exception will be raised when a domain error is encountered.

Include

<math.h>

Value

The value 1.