求绝对值

#include <math.h>
int 型
int abs(int x);

long 型
long labs(int x);

浮点数 float double
double fabs(double x);

原文地址:https://www.cnblogs.com/judes/p/9202749.html