I'm rewriting http://209.141.38.179/mcstatus_v1/ and need an equation.
Basically, I have a game server. I know that there are 10 players on that server (Max players being 26). I need to somehow display this number in a progress bar that is out of 100; I need to find out the percentage of 26 that is 10 and then make that a percentage of 100.
An example is 13 of 26. I know that's 50%; the progress bar value would be 50.
Any help is appreciated.