apportionment

Round a set of numbers while maintaining its sum http://hub.darcs.net/thielema/apportionment

Latest on Hackage:0.0.0.3

See all snapshots apportionment appears in

BSD-3-Clause licensed by Henning Thielemann

Module documentation for 0.0.0.2

This version can be pinned in stack with:apportionment-0.0.0.2@sha256:1df44f4b8bf654102fb4d01ce594405af4a57ebc8e8fb5e5b15f896008d69ca0,1167

Round a set of numbers while maintaining its sum. According procedures are used to assign seats to parties in a parliament. You may also use it to round percentages that sum up to 100%. https://en.wikipedia.org/wiki/Apportionment_(politics)