Just use basic multiplication *, division / , and subtraction -, addition +
Why would you need a function to do this? Average=total#ofwidgets/#ofwidgets Ryan Conover [EMAIL PROTECTED] [EMAIL PROTECTED] http://www.pitt.edu/~rscst25/ -----Original Message----- From: Todd Williamsen [mailto:[EMAIL PROTECTED]] Sent: Friday, December 28, 2001 11:04 AM To: [EMAIL PROTECTED] Subject: Re: [PHP-WIN] Mathimatical equations in PHP That is not what I was looking for, is there a function in PHP that does this? "B.A.T. Svensson" <[EMAIL PROTECTED]> wrote in message 27E647E5629ED211BF78009027289C6302157DB4@mail1">news:27E647E5629ED211BF78009027289C6302157DB4@mail1... > >I have a site that is for a football game and people play each other then > >report who is the winner and loser. Well, I want to inject some excitement > >a bit and do some stats, like Passing averages per game and rushing average > >per game. > > > >The problem is that it will need to make the total yards then divide them > by > >the number of games they played. > > > >How would I do that? > > What about the old fashion addition, multiplication and division we all > learnt in basic school? > > > Also would I need two rows, one for total yards and > >one for averages? or just one row just for the averages? > > For total use addition for average divide the total with number of > participates. -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]