Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

A global to calculate the average of 6 link fields ( integer )

Quote Reply
A global to calculate the average of 6 link fields ( integer )
I have 6 fields all on Links DB

they are all integers ranging from 5,5.5,6,6.5,7,7.5,8,8.5,9,9.5,10 ( essentially a rating system )

I need to calculate an average Overall rating.

( field1 + field2 + field3 + field4 + field5 + field6 )/6=overallrating

Something like that... Can someone show me a global to do this ?

Thanks in advance!
Subject Author Views Date
Thread A global to calculate the average of 6 link fields ( integer ) Stephan99 1278 Jun 8, 2004, 2:25 PM
Post Re: [Stephan99] A global to calculate the average of 6 link fields ( integer )
pugdog 1205 Jun 12, 2004, 8:28 AM