ID:148960
 
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%?
A / B * 100

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.
In response to Garthor
Erm, what I meant was..
Display what percent a stat is at of it's max.
Such as, if a person's current stat was at 10, and the max with 500, it would display the proper percent.
In response to Hanns
current/max*100