Skip to content

Support different Rounding Modes #1211

@tobad357

Description

@tobad357

Would it be possible to add a parameter to the round(x[, N]) function to choose the type of rounding
In this case it would be nice to support HALF_UP, HALF_EVEN and HALF_DOWN
It would help a lot when doing financial calculations

Example from java
https://docs.oracle.com/javase/7/docs/api/java/math/RoundingMode.html

Interesting paper from AMD
http://developer.amd.com/resources/articles-whitepapers/new-round-to-even-technique-for-large-scale-data-and-its-application-in-integer-scaling/

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