-
Notifications
You must be signed in to change notification settings - Fork 804
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
common/math: Add CalculateAbsPercentageDifference
and add DecimalAbsPercentageDifference
#1617
base: master
Are you sure you want to change the base?
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.
I wouldn't call it a bug to have a negative percentage difference. I would suggest you add CalculateAbsPercentageDifference
and DecimalAbsPercentageDifference
Co-authored-by: Scott <[email protected]>
Yeah, I guess they are both valid so it's not a bug, but I would caution adding the difference though as you can get values above 100% in the negative direction, all we are achieving is finding the degree of magnitude, I would say directionality can be applied to the value after if needed? I see that I am starting to furiously agree with you as I type this. So I can add the distinction and people can choose their own destiny. 😆 |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1617 +/- ##
=======================================
Coverage 36.37% 36.38%
=======================================
Files 422 422
Lines 183113 183125 +12
=======================================
+ Hits 66602 66623 +21
+ Misses 108466 108459 -7
+ Partials 8045 8043 -2
|
CalculatePercentageDifference
and add DecimalPercentageDifference
CalculateAbsPercentageDifference
and add DecimalAbsPercentageDifference
PR Description
Fixes # (issue)
Type of change
Please delete options that are not relevant and add an
x
in[]
as item is complete.How has this been tested
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration and
also consider improving test coverage whilst working on a certain feature or package.
Checklist