Round percentages that add up to 100, such that the rounded percentages also add up to 100 using the largest remainder method.
Project description
Round-Percentages
Round percentages that add up to 100, such that the rounded percentages also add up to 100 using the largest remainder method.
Installation
To install run
pip install round-percentages
Example usage
import round_percentages
round_percentages([13.626332, 47.989636, 9.596008, 28.788024])
output: [14, 48, 9, 29]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
round-percentages-1.0.tar.gz
(2.8 kB
view hashes)
Built Distribution
Close
Hashes for round_percentages-1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0609212acdd178548a4b3b31abe2957a7efb148dd9d7d75234f7fc940dcdc9fb |
|
MD5 | e068318a04ad4104c192c2d375d73d41 |
|
BLAKE2b-256 | 92c28d3c270dc851ac82a39e2c885eda97762e4c914ce7cb0ea31bda642bd08d |