-
Notifications
You must be signed in to change notification settings - Fork 22
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
More flexible and precise approx_eq
#869
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.
My concern is usage of float-point approximation for fixed-point arithmetics, discussed it with @bragov4ik. Please, reassign me to the PR review in case of changes.
…tests (#880) * fix(kensetsu): replace assert_approx_eq with assert_eq in xst pallet tests
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.
👍
Used in tests for #749 (PR #864)
Inspired by https://stackoverflow.com/questions/4915462/how-should-i-do-floating-point-comparison