Jump to content

[SOLVED] getting the % of something.


seany123

Recommended Posts

okay so i have 2 values.

 

awake and maxawake.

 

awake can be anything from 0 - 10,000 (10,000 depends on the maxawake)

 

maxawake can be anything from 100 - 10,000.

 

so i wanna know how to work out what percentage awake is against maxawake.

 

so say awake was 100 and max awake was 10,000.

 

awakes would be 1% of 10,000.

 

how can this be worked out in php???

Link to comment
https://forums.phpfreaks.com/topic/142968-solved-getting-the-of-something/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.