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, 1044🔥, 0💬
Popular Posts:
How to download and install Microsoft .NET Framework Version 2.0 in SQL Server? .NET Framework Versi...
What are DDL (Data Definition Language) statements for tables in SQL Server? DDL (Data Definition La...
How To Change the Name of a Database User in SQL Server? If you want to change the name of an existi...
How To Recover a Dropped Index in Oracle? If you have the recycle bin feature turned on, dropped ind...
How To Start the Command-Line SQL*Plus in Oracle? If you Oracle server or client installed on your w...