Skip to main content

PYPI package with only 1 function to round float numbers to the number of significant digits

Project description

GitHub last commit GitHub license<space><space> PyPI PyPI - Python Version

Overview.

pyround is a one function PYPI package made only with one goal to round float numbers in python to asked number of signifacant digits

import pyround

pyround.pyround(0.23234, 2)  # 0.23
pyround.pyround(0.235, 2)  # 0.24
pyround.pyround(105.3, 1)  # 100
pyround.pyround(125.3, 2)  # 130

Installation via pip:

pip install pyround

Contacts

License

This project is licensed under the MIT License.

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

pyround-0.1.0.tar.gz (2.9 kB view hashes)

Uploaded Source

Built Distribution

pyround-0.1.0-py3-none-any.whl (3.0 kB view hashes)

Uploaded Python 3

Supported by

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