Runiter Company
Would you like to react to this message? Create an account in a few clicks or log in to continue.

divide 14/15 times it by 100 using PHP, how much it may be?

Go down

divide 14/15 times it by 100 using PHP, how much it may be? Empty divide 14/15 times it by 100 using PHP, how much it may be?

Post  simy202 on Tue Jan 25, 2011 3:47 am

I divide 14 / 15 times it by 100 to get the percentage which is 93.33333333333333 how can I display it as 93.3% using php?

Here is the code.

$percent = ($avg / 15) * 100;

simy202

Posts : 1
Join date : 2011-01-25

http://www.phpkode.com

Back to top Go down

divide 14/15 times it by 100 using PHP, how much it may be? Empty Re: divide 14/15 times it by 100 using PHP, how much it may be?

Post  runiter on Tue Jan 25, 2011 10:15 am

This is not a php forum. This is forum about our software, the Smart Math Calculator.

_________________
Saeid Nourian, Ph.D.
Founder of Runiter Company
http://www.runiter.com
runiter
runiter
Admin

Posts : 135
Join date : 2007-12-05
Age : 39
Location : Boston, MA, USA

http://www.runiter.com

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum