Jump to content

php maths help


Canman2005

Recommended Posts

Hello everyone

I have a php page which prints two number values, one of the numbers is a percentage and the other is a total amount. It looks like;

Percentage: 22
Total: 500

Can PHP work out percentages? So my example would be

22% of 550

and then print out the toal on the page with the percentage deducted from the total? Tried a few ideas but cannot seem to get it to work

Any help would be ace

Thanks in advance

Mark

Link to comment
https://forums.phpfreaks.com/topic/11464-php-maths-help/
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.