- #1
1plus1is10
- 51
- 0
In a perfect world, whenever I need to calculate a percent, the biggest number would be on the bottom.
A=3, B=4
A/B = 3/4 = 0.75 * 100 = 75%
Wonderful - I can easily know I am 25% away from 100%.
Unfortunately, I often have the numbers swapped (A is bigger than B):
A=4, B=3
A/B = 4/3 = 1.333333 * 100 = 133%
Not wonderful - it is now 33% away from 100%
Is it possible to do one calculation to give me 25% in both scenarios?
I've toyed with many "stupid" ideas like:
abs(A-B) / ((A+B)/2)
I would even be happy to have something log/exp based rather than percent.
As long as the result could be used to compare A and B, and then also C and D, etc.
Thanks for any help and ideas.
A=3, B=4
A/B = 3/4 = 0.75 * 100 = 75%
Wonderful - I can easily know I am 25% away from 100%.
Unfortunately, I often have the numbers swapped (A is bigger than B):
A=4, B=3
A/B = 4/3 = 1.333333 * 100 = 133%
Not wonderful - it is now 33% away from 100%
Is it possible to do one calculation to give me 25% in both scenarios?
I've toyed with many "stupid" ideas like:
abs(A-B) / ((A+B)/2)
I would even be happy to have something log/exp based rather than percent.
As long as the result could be used to compare A and B, and then also C and D, etc.
Thanks for any help and ideas.