apportionment

Round a set of numbers while maintaining its sum

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

Version on this page:0.0.0.4
LTS Haskell 22.39:0.0.0.4
Stackage Nightly 2024-10-31:0.0.0.4@rev:1
Latest on Hackage:0.0.0.4@rev:1

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.4@sha256:73ec8944658a646d22cd2ab26a947fdd1cae482ed6c3887c64f24ea0482c6fdc,1570

Module documentation for 0.0.0.4

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)