首页 > 代码库 > ABS(x)

ABS(x)

ABS(x) 用于返回 x 的绝对值

mysql> SELECT ABS(2), ABS(-2.3), ABS(-33);+--------+-----------+----------+| ABS(2) | ABS(-2.3) | ABS(-33) |+--------+-----------+----------+| 2      | 2.3       | 33       |+--------+-----------+----------+

 

 

 

 

    

ABS(x)