一、abs()
<cstdlib>
int abs(int x)
返回类型int,参数类型int。用于计算整数的绝对值
<cmath>
abs 函数是一个重载函数,可以处理多种数值类型的绝对值原型
double abs(double num); float abs(float num); long double abs(long double num);