-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Description
I understand the default rounding mode cannot be changed for internally reducing values to a precision, but would it be possible to set a default rounding mode for calls to ->round()? In my case, I'd like to always use a different rounding mode, but it requires me to set the rounding mode on every call to round().
I use bignumber.js which has something similar:
https://mikemcl.github.io/bignumber.js/#rounding-mode
Or is there another way this can be done without having to remember to pass the rounding mode on every call to round()? One way I thought of was if I could extend the Decimal class and override the round method, but I see the Decimal class is defined as final.
Thank you for your help.
CreepPork
Metadata
Metadata
Assignees
Labels
No labels