abs

求一个数的绝对值


语法
 int abs(int x)


参数


返回值

返回所求的绝对值