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, 1417🔥, 0💬
Popular Posts:
What Is Oracle in Oracle? Oracle is a company. Oracle is also a database server, which manages data ...
What Happens If the Imported Table Already Exists in Oracle? If the import process tries to import a...
How To Convert Numeric Expression Data Types using the CAST() Function in SQL Server Transact-SQL? I...
How To Install PHP on Windows in MySQL? The best way to download and install PHP on Windows systems ...
How To Convert Character Strings into Numeric Values in SQL Server Transact-SQL? Sometimes you need ...