funcool / decimal

An arbitrary-precision Decimal type for ClojureScript
http://funcool.github.io/decimal/latest/
BSD 2-Clause "Simplified" License
13 stars 6 forks source link

pos? is broken #9

Open polymeris opened 4 years ago

polymeris commented 4 years ago

I would expect (pos? 0) to be false.

(dc/pos? (dc/decimal 0)) ;=> true

Also its docstring makes no sense: "Returns true if the value of this Decimal is negative, otherwise returns false."

polymeris commented 4 years ago

Related: https://github.com/MikeMcl/decimal.js/issues/62