Python package that allows to get mathematically rounded floating numbers.
Project description
math_round_af
math_round_af
is a Python package that allows to get mathematically rounded floating numbers.
Prerequisites
Before you begin, ensure you have installed the latest version of Python.
Installing math_round_af
To install math_round_af
, follow these steps:
Linux and macOS:
pip3 install math-round-af
Windows:
pip install math-round-af
Using math_round_af
There are examples of how to use math_round_af
:
>>> from math_round_af import get_rounded_number
>>> get_rounded_number(0.4)
0.0
>>> get_rounded_number(0.5)
1.0
>>> get_rounded_number(-0.4)
0.0
>>> get_rounded_number(-0.5)
-1.0
>>> get_rounded_number(3.142, 0)
3.0
>>> get_rounded_number(3.142, 1)
3.1
>>> get_rounded_number(3.142, 2)
3.14
Contributing to math_round_af
To contribute to math_round_af
, follow these steps:
- Fork this repository.
- Create a branch:
git checkout -b <branch_name>
. - Make your changes and commit them:
git commit -m '<commit_message>'
- Push to the original branch:
git push origin <project_name>/<location>
- Create the pull request.
Alternatively see the GitHub documentation on creating a pull request.
Contributors
Contact
If you want to contact me you can reach me at albertfarhutdinov@gmail.com
.
License
This project uses the following license: 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
math_round_af-1.0.2.tar.gz
(4.0 kB
view hashes)
Built Distribution
Close
Hashes for math_round_af-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c43e102817bb1786e3569e55037fc85926986644f2c7ca7be0924e174e0999e2 |
|
MD5 | ec2fe3a7b6a3993a2c0c33e24d683397 |
|
BLAKE2b-256 | 32b40b5b7e8e74d2f9e4a0b4e4302e25db6eb68256086420ad1262447e24aa8a |