Site icon EfmSoft

What does errno 34 (ERANGE) mean?

 
Could be also:
ConstantTypeOS
ERROR_WRONG_DISKWin32 errorWindows
KERN_INVALID_MEMORY_CONTROLKern returnMac
ippStsStreamEndIntel Ipp StatusAny
FILE_SYSTEMBugCheck CodeWindows
Previous Next
EDOM EDEADLK

ERANGE

Valid input, unusable result

ERANGE usually indicates that an operation is meaningful, but its result cannot be represented by the destination type or interface. Mathematical functions can use it for overflow and underflow. A pole error, such as log(0), also produces this result because the exact mathematical result is an infinity.

The same error is not restricted to floating-point math. strtol() returns LONG_MAX or LONG_MIN and sets errno to this result when a parsed integer overflows or underflows long. A caller that only looks at the returned boundary value cannot distinguish a real boundary value from a conversion failure.

How it differs from EDOM

ConditionMeaningTypical example
EDOMThe input lies outside the function’s domain.log(-1) or a negative base with a nonintegral pow() exponent.
This resultThe operation is defined, but the result does not fit the target representation.Overflow in pow() or an out-of-range integer parsed by strtol().

Checking and handling the condition

References


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

Exit mobile version