Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created August 2, 2019 21:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/d52763b915f91c322444933771c8717a to your computer and use it in GitHub Desktop.
Save parzibyte/d52763b915f91c322444933771c8717a to your computer and use it in GitHub Desktop.
MariaDB [(none)]> select ceiling(200.4);
+----------------+
| ceiling(200.4) |
+----------------+
| 201 |
+----------------+
1 row in set (0.04 sec)
MariaDB [(none)]> select ceiling(1.9);
+--------------+
| ceiling(1.9) |
+--------------+
| 2 |
+--------------+
1 row in set (0.00 sec)
MariaDB [(none)]> select ceiling(28.11);
+----------------+
| ceiling(28.11) |
+----------------+
| 29 |
+----------------+
1 row in set (0.00 sec)
MariaDB [(none)]> select ceiling(28.00001);
+-------------------+
| ceiling(28.00001) |
+-------------------+
| 29 |
+-------------------+
1 row in set (0.00 sec)
MariaDB [(none)]> select ceiling(0.0001);
+-----------------+
| ceiling(0.0001) |
+-----------------+
| 1 |
+-----------------+
1 row in set (0.00 sec)
MariaDB [(none)]> select ceiling(0);
+------------+
| ceiling(0) |
+------------+
| 0 |
+------------+
1 row in set (0.00 sec)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment