Display one number as a percent of another?
IE: Let's say stat A is 250, and stat B is 500, how would I make it so it displays the percentage of A and B, B being the 'high number', therefore making the display of the percent of A and B 200%?
ID:148960
![]() Aug 5 2002, 4:03 pm
|
|
If you want it to always show a higher percent (200% instead of 50%)...
max(A,B) / min(A,B) * 100
If they're the same I don't know what will happen, so you'd need an if statement on the second one.