ericmj / decimal

Arbitrary precision decimal arithmetic

Home Page:https://hexdocs.pm/decimal/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

proposal: `gte?/2` and `lte?/2`

Mazuh opened this issue · comments

suggestion: a sugar for "greater than or equal to" as gte?/2 and "less than or equal to" as lte?/2

of course I'm not just asking, I can implement these helpers by myself relying on existing functions, add tests and open a pull request... but I'm asking beforehand just to understand the context behind the absence of these functions, they're somewhat common for decimal structures implementations on other stacks.

my point is: if I open a proper PR adding these functions, will it be considered or just denied by design?

Please make a PR.

thanks for replying, @ericmj , I just opened it 😄

Closing in favor of the PR.