|Info||View files (3)||Download .zip||Reputation||Support forum (1)||Blog|
|Last Updated||Ratings||Unique User Downloads||Download Rankings|
|2007-07-01 (7 years ago)||Not enough user ratings||Total: 276||All time: 6,684 This week: 1,638|
|calculadoraescons 1.1||GNU General Public Lice...||5.0||Algorithms|
It takes as parameters the number of available seats and an associative array that relates each party with the votes they received.
The class distributes the available seats using the D'Hondt method and returns an associative arrays that relates each party with the number of assigned seats that they got.
The code and the comments are in Catalan.
|The D'Hondt method is used in many countries to calculate the number of seats assigned to a party, depending on the percentage of votes that they get in elections.
This class provides an implementation of the D'Hondt method. It can be used by PHP sites that want to show on the Web the partial or final results of elections that take place on countries that use this method of assigning elected seats.
|Version Control||Unique User Downloads||Download Rankings|
|This week:||0||This week:||1,638|