Closed iKBAHT closed 1 year ago
Actual: BigNumber.minimum(0, -0) is 0
BigNumber.minimum(0, -0)
0
Expected BigNumber.minimum(0, -0) is -0
-0
Interesting that BigNumber.minimum(-0, 0) works just expected (-0)
BigNumber.minimum(-0, 0)
Online exampe
Good find. I should have had a test case checking that. No doubt maximum has the same issue. I'll apply a fix presently. Thank you for the report.
maximum
Fixed in v9.1.2.
Actual:
BigNumber.minimum(0, -0)
is0
Expected
BigNumber.minimum(0, -0)
is-0
Interesting that
BigNumber.minimum(-0, 0)
works just expected (-0
)Online exampe