Skip to main content

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

This version

1.0

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)

Uploaded Source

Built Distribution

round_percentages-1.0-py3-none-any.whl (3.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page