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.round_up(32.333, 0.02)
32.34

>>> round_utils.round_down(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-1.0.3.tar.gz (3.5 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-1.0.3-py2.py3-none-any.whl (3.6 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: round-utils-1.0.3.tar.gz
  • Upload date:
  • Size: 3.5 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-1.0.3.tar.gz
Algorithm Hash digest
SHA256 505251e7929ee3d6894f435c21670452526ccb0e0c4a65c88749ab49711c13e4
MD5 fe383f445a96c95e877b1500a45dc58e
BLAKE2b-256 6659a47058c51192305b3ddc29fd5c7c7e14561910f53a0ed96c5403a81f017d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: round_utils-1.0.3-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-1.0.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 548f06a269ad8ae38e6adb5e2e37fbc1e2da0cddc79d84f91339542d621cdaf3
MD5 34bcb10cb7b77d4efbb638fb619990fc
BLAKE2b-256 1896cc756d9e4167633fabe8f3750550ea10fdb097cb8e3efdc8dddf63e0cd83

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