-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Support different Rounding Modes #1211
Copy link
Copy link
Closed
Labels
Description
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
Reactions are currently unavailable