Login   Register  
PHP Classes
elePHPant
Icontem

Calc Hondt: Calculate Hondt law coeficients

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2008-02-22 (6 years ago) RSS 2.0 feedStarStarStar 59%Total: 186 All time: 7,279 This week: 1,459Up
Version License PHP version Categories  
hondt 1.0BSD License5Algorithms, PHP 5
Description Author  

This class can be used to calculate the Hondt law coeficients.

It takes the number of available seats and the votes each party got.

The class stores the number of seats each party was assigned in an associative array class variable.

The code and the comments are in Catalan.

Picture of Alex Corretge
Name: Alex Corretge <contact>
Classes: 1 package by
Country: Spain Spain
Age: 43
All time rank: 362197 in Spain Spain
Week rank: 1735 Up50 in Spain Spain Up

  Files folder image Files  
File Role Description
Accessible without login Plain text file sample Example Sample to use Hondt Law Class
Plain text file hondt.php Class Hondt Law class

 Version Control Unique User Downloads Download Rankings  
 0%Total:186All time:7,279
 This week:0This week:1,459Up
 User Ratings  
 
 All time
Utility:83%StarStarStarStarStar
Consistency:91%StarStarStarStarStar
Documentation:-
Examples:91%StarStarStarStarStar
Tests:-
Videos:-
Overall:59%StarStarStar
Rank:892