Collections:
FLOOR() - Flooring a Numeric Value
How to floor a numeric value to an integer using the FLOOR() function?
✍: FYIcenter.com
FLOOR(num) is a MySQL built-in function that
returns the largest integer value not greater than the given numeric value.
For example:
SELECT FLOOR(1.23), FLOOR(-1.23); -- +-------------+--------------+ -- | FLOOR(1.23) | FLOOR(-1.23) | -- +-------------+--------------+ -- | 1 | -2 | -- +-------------+--------------+
Reference information of the FLOOR() function:
FLOOR(num): int Returns the largest integer value not greater than the given numeric value. Arguments, return value and availability: num: Required. The numeric value to be converted. int: Return value. The converted integer. Available since MySQL 4.0.
⇒ FORMAT() - Formatting Number to String
⇐ DEGREES() - Radians to Degrees
2023-12-19, 853🔥, 0💬
Popular Posts:
How To Find Out What Privileges a User Currently Has in Oracle? Privileges granted to users are list...
How To List All Login Names on the Server in SQL Server? If you want to see a list of all login name...
How To Assign Debug Privileges to a User in Oracle? In order to run SQL Developer in debug mode, the...
How To Start Instance with a Minimal Initialization Parameter File in Oracle? The sample initializat...
How To Generate CREATE VIEW Script on an Existing View in SQL Server? If you want to know how an exi...