FLOOR(X) returns the largest integer value not greater than X. : FLOOR : Math Numeric Functions MySQL TUTORIALS


MySQL TUTORIALS » Math Numeric Functions » FLOOR »

 

FLOOR(X) returns the largest integer value not greater than X.


mysql>
mysql> SELECT FLOOR(1.23);
+-------------+
| FLOOR(1.23|
+-------------+
|           |
+-------------+
row in set (0.00 sec)

mysql> SELECT FLOOR(-1.23);
+--------------+
| FLOOR(-1.23|
+--------------+
|           -|
+--------------+
row in set (0.02 sec)

mysql>



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

MySQL TUTORIALS

 Navioo Math Numeric Functions
» FLOOR