Site icon EfmSoft

What does errno 33 (EDOM) mean?

 
Could be also:
ConstantTypeOS
ERROR_LOCK_VIOLATIONWin32 errorWindows
KERN_INVALID_LEDGERKern returnMac
ippStsDstSizeLessExpectedIntel Ipp StatusAny
QUOTA_UNDERFLOWBugCheck CodeWindows
Previous Next
EPIPE ERANGE

EDOM

Invalid mathematical input, not merely a large result

EDOM is a domain error: the supplied value is outside the set of inputs for which the mathematical function is defined in the relevant real-valued interface. For example, the Linux log() family treats a negative argument as a domain error and returns NaN; pow() has a domain error when its base is negative and its finite exponent is nonintegral.

It is important not to collapse this into ERANGE. For log(), zero is not a domain error in the same sense: it is a pole error whose mathematical result is negative infinity, and the interface reports ERANGE. The distinction tells you whether to correct the input domain or to handle a valid operation whose result cannot be represented normally.

Checking math failures reliably

References


Looking for a different code? Search another status or error code.

Exit mobile version