We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unsigned Integer Less-Than-Equal incorrectly evaluates when comparing equal numbers. Uint.LTE()
Uint.LTE()
Current
// LTE returns true if first Uint is lesser than or equal to the second func (u Uint) LTE(u2 Uint) bool { return !u.GTE(u2) }
Fix
func (u Uint) LTE(u2 Uint) bool { return !u.GT(u2) }
Latest Version
small := NewUint(10) large := NewUint(10) fmt.Println(small.LTE(large)) // Should evaluate TRUE
The text was updated successfully, but these errors were encountered:
It's been a long time, old pal, since I've seen a bug in coins/int/unit.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Summary of Bug
Unsigned Integer Less-Than-Equal incorrectly evaluates when comparing equal numbers.
Uint.LTE()
Current
Fix
Version
Latest Version
Steps to Reproduce
For Admin Use
The text was updated successfully, but these errors were encountered: