Skip to content

feat: Support round() function with two parameters - #200

Merged
ovr merged 1 commit into
cubefrom
feat/cubestore-round-two-arguments
Nov 13, 2025
Merged

feat: Support round() function with two parameters#200
ovr merged 1 commit into
cubefrom
feat/cubestore-round-two-arguments

Conversation

@ovr

@ovr ovr commented Nov 13, 2025

Copy link
Copy Markdown
Member
> select round(1234.56, -1);
+-----------------------------------+
| round(Float64(1234.56),Int64(-1)) |
+-----------------------------------+
| 1230                              |
+-----------------------------------+
1 row in set. Query took 0.002 seconds.
> select round(42.4382, 2);
+----------------------------------+
| round(Float64(42.4382),Int64(2)) |
+----------------------------------+
| 42.44                            |
+----------------------------------+
1 row in set. Query took 0.000 seconds.
> select round(42.4);
+----------------------+
| round(Float64(42.4)) |
+----------------------+
| 42                   |
+----------------------+
1 row in set. Query took 0.000 seconds.

@ovr
ovr merged commit 735f2cb into cube Nov 13, 2025
7 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants