Use CEILING in MySQL : Floor Ceiling : Math SQL / MySQL


SQL / MySQL » Math » Floor Ceiling »

 

Use CEILING in MySQL



/*
mysql> select CEILING(-1.4);
+---------------+
| CEILING(-1.4) |
+---------------+
|            -1 |
+---------------+
1 row in set (0.01 sec)

mysql> select CEIL(0.5);
+-----------+
| CEIL(0.5) |
+-----------+
|         1 |
+-----------+
1 row in set (0.01 sec)


*/  
select CEILING(-1.4);
select CEIL(0.5);
           
       



Leave a Comment / Note


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

Follow Navioo On Twitter

SQL / MySQL

 Navioo Math
» Floor Ceiling