ABS(X) returns the absolute value of X. : ABS : Math Numeric Functions MySQL TUTORIALS


MySQL TUTORIALS » Math Numeric Functions » ABS »

 

ABS(X) returns the absolute value of X.


mysql>
mysql> SELECT ABS(2);
+--------+
| ABS(2|
+--------+
|      |
+--------+
row in set (0.00 sec)

mysql> SELECT ABS(-32);
+----------+
| ABS(-32|
+----------+
|       32 |
+----------+
row in set (0.00 sec)

mysql>



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

MySQL TUTORIALS

 Navioo Math Numeric Functions
» ABS