Jump to content

[SOLVED] % of a number variable


almightyegg

Recommended Posts

the leaders of groups in my game can edit the % of money donated to each fund. (3 funds in total) What I need to do is work out the percent of the money that is donated.

So in one instance:

fund1 = 10%

fund2 = 77%

fund3 = 13%

And in another:

fund1 = 28%

fund2 = 22%

fund3 = 50%

 

is there a function that finds a specific % of a number variable? Or do I have to work out some formula, which I'm sure will en up being simple?

Link to comment
https://forums.phpfreaks.com/topic/63983-solved-of-a-number-variable/
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.