Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

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.

Files for math-round, version 0.0.3.post1
Filename, size File type Python version Upload date Hashes
Filename, size math-round-0.0.3.post1.tar.gz (1.8 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page