apportionment

Round a set of numbers while maintaining its sum

http://hub.darcs.net/thielema/apportionment

Version on this page:0.0.0.2
LTS Haskell 22.14:0.0.0.4
Stackage Nightly 2024-03-28:0.0.0.4
Latest on Hackage:0.0.0.4

See all snapshots apportionment appears in

BSD-3-Clause licensed by Henning Thielemann
Maintained by [email protected]
This version can be pinned in stack with:apportionment-0.0.0.2@sha256:1df44f4b8bf654102fb4d01ce594405af4a57ebc8e8fb5e5b15f896008d69ca0,1167

Module documentation for 0.0.0.2

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)