The hypot() function takes precautions against underflow and overflow during intermediate steps of the computation.
An application wishing to check for error situations should set errno to 0 before calling hypot(). If errno is non-zero on return, or the return value is HUGE_VAL or NaN, an error has occurred.