Skip to content

round

Returns rounded values for <input_expr>. If the fractional part is exactly 0.5, the result is rounded away from zero.

round( <input_expr> )

The return type is float.

The value or expression to operate on. The data type should be float.

SELECT round(135.135), round(-975.975), round(2.5), round(-2.5);
+----------------+------------------+------------+--------------+
| round(135.135) | round(- 975.975) | round(2.5) | round(- 2.5) |
+----------------+------------------+------------+--------------+
| 135.0 | -976.0 | 3.0 | -3.0 |
+----------------+------------------+------------+--------------+
ScopeDB Logo ScopeDB
© 2025 ScopeDB. All rights reserved.