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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file round-percentages-1.0.tar.gz.

File metadata

  • Download URL: round-percentages-1.0.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.2

File hashes

Hashes for round-percentages-1.0.tar.gz
Algorithm Hash digest
SHA256 39ca3bb4efcd148b0febf9f4a30bb30bc529a36f30a4d8761b4673328ee36fc5
MD5 52f5b21401a41f3dee7c0ed053308f83
BLAKE2b-256 5ae371df956e87544976ca287dc7e82253e651056625691617f7f1c1e5c03a1c

See more details on using hashes here.

File details

Details for the file round_percentages-1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for round_percentages-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0609212acdd178548a4b3b31abe2957a7efb148dd9d7d75234f7fc940dcdc9fb
MD5 e068318a04ad4104c192c2d375d73d41
BLAKE2b-256 92c28d3c270dc851ac82a39e2c885eda97762e4c914ce7cb0ea31bda642bd08d

See more details on using hashes here.

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