Discussion on voting systems

Alex Merry kde at randomguy3.me.uk
Mon Jan 26 21:49:57 CET 2009


On Monday 26 January 2009 12:56:55 Gregory Meyer wrote:
> On Sat, Jan 17, 2009 at 2:30 PM, Leo Franchi <lfranchi at kde.org> wrote:
> > 1 + ( 1 / 72 * 12 )  = 1.17
>
> I think you meant this to be (1 + ( 1 * months_of_active_contribution
> / months_of_project_lifetime ))  The way it is in your example gives
> people with more months a lower result, for instance, a person that
> has been around since the beginning:
>
> 1 + ( 1 / 72 * 72 ) = 1.0001929

Operations without a defined precendence are left-associative.  So, in fact, 
this would be
  1 + ( ( 1 / 72 ) * 72 )
= 1 + ( 0.whatever * 72 )
= 1 + 1
= 2

Although it can be written both more simply and more clearly as
1 + ( months_of_active_contribution / months_of_project_lifetime )

Alex

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/amarok-devel/attachments/20090126/187d68bd/attachment.sig 


More information about the Amarok-devel mailing list