Closed charmbv closed 1 year ago
I don't really disagree but this library has signed zeros like JavaScript numbers, and that was an early design decision I have no interest in revisiting.
Decimal(-0).isNegative() // true
Decimal(0).isPositive() // true
isZero
can be used to detect zero.
Currently the function
isPositive()
returnstrue
for a zero value. This should befalse
.