Skip to main content

Mathematical rounding for python 3

Project description

Mathematical rounding in Python 3

This package is designed for using mathematical rounding. This type of rounding was used by function - round () in python 2.

Quick start

  1. Install this package using pip:

    pip install math-round
  2. Import mround function from math_round package.

  3. Use like this:

    mround(12.123) # - > 12
    mround(12.123, 1) # -> 12.1
  4. To replace the standard function - round () in the whole project, write the following in the main __init__ file:

    import builtins
    from math_round import mround
    
    
    builtins.round = mround

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

math-round-0.0.3.post1.tar.gz (1.8 kB view details)

Uploaded Source

File details

Details for the file math-round-0.0.3.post1.tar.gz.

File metadata

  • Download URL: math-round-0.0.3.post1.tar.gz
  • Upload date:
  • Size: 1.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

File hashes

Hashes for math-round-0.0.3.post1.tar.gz
Algorithm Hash digest
SHA256 ab2d6fb0b21cc4f42874f1fb352b12f226fbec34cc40c8560499105119eb76ab
MD5 22c51326e4d480808c5d32ca0fdc9113
BLAKE2b-256 3f2ded732df2e5af9a35cfaa9110f290df733b15f8610261f0a9b92e6c75b987

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