Re: Mathimatical equations in PHP
| From: | Todd Williamsen | Date: | Fri, 28 Dec 2001 16:04:21 +0000 |
| Subject: | Re: Mathimatical equations in PHP | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-11179@lists.php.net to get a copy of this message | ||
That is not what I was looking for, is there a function in PHP that does
this?
"B.A.T. Svensson" <B.A.T.Svensson@lumc.nl> wrote in message
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.