RE: [PHP-WIN] Mathimatical equations in PHP
| From: | Rconover at americanbridge dot net | Date: | Fri, 28 Dec 2001 16:10:39 +0000 |
| Subject: | RE: [PHP-WIN] Mathimatical equations in PHP | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-11180@lists.php.net to get a copy of this message | ||
Just use basic multiplication *, division / , and subtraction -, addition +
Why would you need a function to do this?
Average=total#ofwidgets/#ofwidgets
Ryan Conover
Rconover@americanbridge.net
rscst25@pitt.edu
http://www.pitt.edu/~rscst25/
-----Original Message-----
From: Todd Williamsen [mailto:todd@williamsen.net]
Sent: Friday, December 28, 2001 11:04 AM
To: php-windows@lists.php.net
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" <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.
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
For additional commands, e-mail: php-windows-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net