PHP Classes

Calc Hondt: Calculate Hondt law coeficients

Recommend this page to a friend!
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 62%Total: 206 All time: 8,352 This week: 204Up
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: 51
All time rank: 4084110 in Spain Spain
Week rank: 500 Up14 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  
This week:0
All time:8,352
This week:204Up
 User Ratings  
 All time
For more information send a message to info at phpclasses dot org.