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.1.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.1-py2.py3-none-any.whl (3.7 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: round-utils-2.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 1b8bc154dff56bef037bfa781477bd35144d9cddf2aa9a324fdba2455adf0abd
MD5 f74569fb4f17d35ba1e8c60285a5131c
BLAKE2b-256 94f7fec5b31c994eabd3c4e20c555bf28b00698f354fc170d7af267a4497d360

See more details on using hashes here.

File details

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

File metadata

  • Download URL: round_utils-2.0.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 3.7 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.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b19dd66319ab588e160c22138b8938e8bcff892f6603a8d7842c50aa7e6c94d7
MD5 39695bd77dc72bbff724aad3f9e08053
BLAKE2b-256 8ab9009d30149a2dc6e8a944f2d692bbf4cbf8e4034c442a26d932103dda826c

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