You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When comparing std big.Int's or big.Float's there is an edge case for the value zero where is reports the error 0 != 0. The reason for this is the big.{Int,Float} attribute neg bool which can be both true and false for the value zero.
It's not really a bug since the structs are different after all. However, since this are std types it would be nice if they would be compared by their Cmp function.
The text was updated successfully, but these errors were encountered:
Hi @lmittmann
There was a longer discussion about is.Equal and some short comings it currently has in #53 . Before providing a PR, I suggest to you go through the discussion there.
When comparing std
big.Int
's orbig.Float
's there is an edge case for the value zero whereis
reports the error0 != 0
. The reason for this is thebig.{Int,Float}
attributeneg bool
which can be bothtrue
andfalse
for the value zero.Example
This will result in:
It's not really a bug since the structs are different after all. However, since this are std types it would be nice if they would be compared by their
Cmp
function.The text was updated successfully, but these errors were encountered: