Skip to content

round function's behavior? #3602

@eitsupi

Description

@eitsupi

The round function implemented in the major RDBMS seems to do rounding, is rounding ideal for the behavior of the PRQL's round function?
In other words, I am wondering if the behavior of the round function should be changed to bankers' rounding.

In general, rounding is very easy to implement on the user side compared to bankers' rounding, since all we have to do is add 0.5 and trunc that.

Related duckdb's issue: duckdb/duckdb#2348

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions