Collections:
ABS() - Absolute Value
How to calculate the absolute value of a given numeric value using the ABS() function?
✍: FYIcenter.com
ABS(str) is a MySQL built-in function that
returns the absolute value of a given value.
For example:
SELECT ABS(-18), ABS(-17.7778), ABS(-1.77778E1); -- +----------+---------------+-----------------+ -- | ABS(-18) | ABS(-17.7778) | ABS(-1.77778E1) | -- +----------+---------------+-----------------+ -- | 18 | 17.7778 | 17.7778 | -- +----------+---------------+-----------------+
Reference information of the ABS() function:
ABS(X): val Returns the absolute value of X, or NULL if X is NULL. Arguments, return value and availability: X: Required. The input value. val: Return value. The absolute value of the input value. Available since MySQL 4.0.
⇒ ACOS() - Arccosine Trigonometric Value
⇐ MySQL Functions on Numeric Values
2023-11-15, 1627🔥, 0💬
Popular Posts:
How To Start the Command-Line SQL*Plus in Oracle? If you Oracle server or client installed on your w...
Where to find answers to frequently asked questions on PHP Connections and Query Execution for MySQL...
How Run SQL*Plus Commands That Are Stored in a Local File in Oracle? If you have a group of commands...
How To Convert Characters to Numbers in Oracle? You can convert characters to numbers by using the T...
How To Download Oracle Database 10g XE in Oracle? If you want to download a copy of Oracle Database ...