ericmj / decimal

Arbitrary precision decimal arithmetic

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Does it make sense to have a is_zero function?

apr94 opened this issue · comments

If not, what is the idiomatic way to check if a Decimal is equal to zero?

Thanks!

You can do: Decimal.equal?(x, 0).