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 16.3:0.0.0.3
Stackage Nightly 2020-07-04:0.0.0.3
Latest on Hackage:0.0.0.3

See all snapshots apportionment appears in

BSD-3-Clause licensed by Henning Thielemann
Maintained by [email protected]

Module documentation for 0.0.0.2

This version can be pinned in stack with:[email protected]: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)