Skip to main content

Package for rounding functions

Project description

Codecov License: MIT

Round utils

This package provides functions to round numbers up to a multiplicity of a pointed step. Float value's rounded by literal representation.

Example of usage

>>> import round_utils

>>> round_utils.ceil(32.333, 0.02)
32.34

>>> round_utils.floor(32.333, 0.02)
32.32

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

round-utils-2.0.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

round_utils-2.0.0-py2.py3-none-any.whl (3.6 kB view details)

Uploaded Python 2Python 3

File details

Details for the file round-utils-2.0.0.tar.gz.

File metadata

  • Download URL: round-utils-2.0.0.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.6

File hashes

Hashes for round-utils-2.0.0.tar.gz
Algorithm Hash digest
SHA256 95e3d62f78af9e80a0309da2360e64df0e194268ba5a31f66124411671e70ea7
MD5 13ab3282e510a2aaf2c5602b04cfe84c
BLAKE2b-256 25b54eb05b6dc83c0f2fdb46e472c0955664d3c0297bc6a4d95b04428d14b1c5

See more details on using hashes here.

File details

Details for the file round_utils-2.0.0-py2.py3-none-any.whl.

File metadata

  • Download URL: round_utils-2.0.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.6

File hashes

Hashes for round_utils-2.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7c27159b6f1df7d7cedf0a615293de6acb42549f4696cbea4379fe99af10c927
MD5 4b49d8907d56f5a2335ad974be2e0e73
BLAKE2b-256 b85be6df64efe4fce5be5380ff0688985d3055dc735a2294b4ddddf846ff2743

See more details on using hashes here.

Supported by

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