Tired and feeling dumb...maths question....

From: Date: Thu, 14 Jul 2005 19:16:38 +0000
Subject: Tired and feeling dumb...maths question....
Groups: php.general 
Request: Send a blank email to php-general+get-218707@lists.php.net to get a copy of this message
Hey, At this stage am pretty much brain dead and getting a simple percentage is too much for me now. Basically, I have these two fields: $pic_no_of_votes $vote_total_pts and this totals them up and keeps the average: $average_pts people vote on a scale of 1-5, so the average should be between 1-5 (right?? am not even sure of this!) I was thinking of rounding it with a 2 decimal point...eg: round(5.045, 2) Just need to solve this and them am hitting the sack, any help appreciated. Thanks, Ryan

« previous php.general (#218707) next »