How rounding differs for exact and approximate values: : ROUND « Math Numeric Functions « MySQL Tutorial






mysql>
mysql> SELECT ROUND(2.5), ROUND(25E-1);
+------------+--------------+
| ROUND(2.5) | ROUND(25E-1) |
+------------+--------------+
|          3 |            2 |
+------------+--------------+
1 row in set (0.00 sec)

mysql>








21.31.ROUND
21.31.1.ROUND(X), ROUND(X,D) rounds the argument X to D decimal places.
21.31.2.ROUND(1.298, 1)
21.31.3.ROUND(1.298, 0)
21.31.4.ROUND(23.298, -1)
21.31.5.ROUND(150.000,2)/ROUND(150,2)
21.31.6.Rounding value in a column
21.31.7.How rounding differs for exact and approximate values: