跳转到内容

sqrt, sqrtf:正平方根

#include <math.h>
double sqrt(double x);
float sqrtf(float x);
```### 描述
sqrt 计算参数的正平方根。您可以使用 matherr 修改此函数的错误处理。### 返回值
成功时,返回平方根。如果 x 是实数且为正数,则结果为正数。如果 x 是实数且为负数,则全局值 errno 将被设置为 EDOM(域错误)。
---
**权威来源**: BUSMASTER DITA help source `sqrt.dita`, compiled into `BUSMASTER.CHM` with the application.