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?

Post  simy202 on Tue Jan 25, 2011 4: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

View user profile http://www.phpkode.com

Back to top Go down

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

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

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

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

Posts : 132
Join date : 2007-12-05
Age : 37
Location : Boston, MA, USA

View user profile http://www.runiter.com

Back to top Go down

Back to top

- Similar topics

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