The HUGE_VAL macro, defined in math.h, is returned as an error value by the strtod() function. See "strtol" for information on strtod().
Un-optimized x86 math.h functions may use the "errno" global variable to indicate an error condition. In particular, many functions set errno to EDOM (see Table 8.1) when an argument is beyond a legal domain.