C Language and Libraries Help (clang.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
_hypot, _hypotl
 Summary Example                         Up Contents Index Back
─────Run-Time Library───────────────────────────────────────────────────────
 
     The _hypot function calculates the length of the hypotenuse of a
     right triangle. Given the length of the two sides <x> and <y>, a
     call to _hypot returns the square root of the quantity <x>
     squared plus <y> squared.
 
     The _hypotl function uses the 80-bit long double form of arguments
     and return values. In all other respects, it is identical to the
     regular function.
 
     Return Value
 
     These functions return the length of the hypotenuse. If an
     overflow results, _hypot returns HUGE_VAL, _hypotl returns
     _LHUGE_VAL, and both functions set errno to ERANGE.
                                    -♦-