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, 1334🔥, 0💬
Popular Posts:
How To Install Oracle Database 10g XE in Oracle? To install 10g universal edition, double click, Ora...
What is SQL Server Transact-SQL (T-SQL)? SQL Server Transact-SQL, also called T-SQL, is an extension...
How To Create a Stored Program Unit in Oracle? If you want to create a stored program unit, you can ...
How To Create a Table Index in Oracle? If you have a table with a lots of rows, and you know that on...
Where to find reference information and tutorials on MySQL database functions? I want to know how to...