-
Notifications
You must be signed in to change notification settings - Fork 344
New issue
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
Add abs_diff
function for math package
#1334
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, thank you. Can you make them const
? Also I'd use other: Self
consistently which seems a bit cleaner than the various sort of Into
types.
We might just not use |
I see. Our |
Okay, let's make the Uint64/Uint128/Decimal case |
This should be a part of #1186
Add the
abs_diff
function for calculating the absolute difference in cosmwasm-math package as suggested