|
-
Jun 25th, 2008, 11:28 PM
#1
Thread Starter
Hyperactive Member
Calculating an average
little help I have 5,5 star ratings A-E I need to calculate the average of them for display in another rating and unsure how to do this.
A = 2 votes value = 7
B = 1 votes value = 3
C = 2 votes value = 7
D = 1 votes value = 3
E = 1 votes value = 1
-
Jun 26th, 2008, 12:19 AM
#2
Re: Calculating an average
-
Jun 26th, 2008, 12:26 AM
#3
Thread Starter
Hyperactive Member
Re: Calculating an average
they are stored in mysql I know how to fetch them just need to know how to calculate the equation
A['total_votes'] (2), A['total_value'] (7)
B ...
C....
D...
-
Jun 26th, 2008, 02:22 AM
#4
Re: Calculating an average
Isn't it just total value divided by total votes? Or am I missing something?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|