Re: Average Number For Math Functions
| From: | VolVE | Date: | Fri, 30 Aug 2002 02:24:03 +0000 |
| Subject: | Re: Average Number For Math Functions | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-114582@lists.php.net to get a copy of this message | ||
Can't you just count the elements and then divide the total by the count?
It seems pretty obfuscating to consider a function that takes an unknown
number of elements, unless it were an array... still, seems pretty easy to
count and divide total... doesn't it?
-VolVE
> ----- Original Message -----
> From: "JohnP" <aerc@aerc.biz>
> To: <php-general@lists.php.net>
> Sent: Thursday, August 29, 2002 20:55
> Subject: [PHP] Average Number For Math Functions
>
>
> Ok I looked at all the math functions for PHP but saw no way of returning
> the average of a set of numbers - I plan on using this for a rating
system -
> any help?
>
> --
> John
>
>