Created
August 2, 2019 21:17
-
-
Save parzibyte/200fc9d7f99de168e4b8a76030b1e77e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MariaDB [(none)]> select round(12.78, -1); | |
+------------------+ | |
| round(12.78, -1) | | |
+------------------+ | |
| 10 | | |
+------------------+ | |
1 row in set (0.05 sec) | |
MariaDB [(none)]> select round(12.78, -2); | |
+------------------+ | |
| round(12.78, -2) | | |
+------------------+ | |
| 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