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, 1416🔥, 0💬
Popular Posts:
Where to find SQL Server database server tutorials? Here is a collection of tutorials, tips and FAQs...
How To Count Rows with the COUNT(*) Function in SQL Server? If you want to count the number of rows,...
How To Get the Definition of a View Out of the SQL Server in SQL Server? If you want get the definit...
How To Start MySQL Server in MySQL? If you want to start the MySQL server, you can run the "mysqld" ...
How To Generate CREATE TABLE Script on an Existing Table in SQL Server? If you want to know how an e...