@hackage / apportionment

Round a set of numbers while maintaining its sum

Latest0.0.0.4

About

Metadata

  • Last updated , by HenningThielemann
  • License BSD-3-Clause
  • Categories Mathematics
  • Maintained by: haskell@henning-thielemann.de

  • Lottery factor: 0

Links

Installation

Readme

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)