decimal.js icon indicating copy to clipboard operation
decimal.js copied to clipboard

Half Odd Rounding mod

Open Saka7 opened this issue 4 years ago • 2 comments

Any plans to support Half-odd Rounding mode?

Saka7 avatar Apr 16 '21 09:04 Saka7

No, but I'm not against it. I think I should probably have included it from the beginning, but I think I just used the rounding modes from Java's BigDecimal.

MikeMcl avatar Apr 16 '21 17:04 MikeMcl

Hi @MikeMcl! I was just trying to implement rounding standard from Brazil, ABNT NBR 5891 and realized that it is actually ROUND_HALF_ODD. Sadly, it's missing.

I'll try to make some time to implement it and make a PR. But I have a question:

How do you handle new features between this and decimal.js-light? I think this should be implemented in both libs, right? Implementations are independent between packages?

jormaechea avatar Jun 09 '23 16:06 jormaechea