apportionment

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

LTS Haskell 9.14:0.0.0.2
Stackage Nightly 2017-11-24:0.0.0.2
Latest on Hackage:0.0.0.2
BSD3 licensed by Henning Thielemann
Maintained by haskell@henning-thielemann.de

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)

Used by 1 package:
comments powered byDisqus