hypot, hypotf : 到原点的距离
#include <math.h>double hypot(double x, double y);float hypotf(float x, float y);```### 描述
hypot 计算原点 (0,0) 与由笛卡尔坐标 (x,y) 表示的点之间的欧几里得距离。hypotf 仅在其参数和结果的类型上有所不同。### 返回值
正常情况下,返回距离值。发生溢出时,hypot 返回 HUGE_VAL 并将 errno 设置为 ERANGE。您可以使用 matherr 更改错误处理方式。
---
**权威来源**: BUSMASTER DITA help source `hypot.dita`, compiled into `BUSMASTER.CHM` with the application.