Python set precision float

SetPrecision 0.2.0

Python module providing an easy way to set the precision of a floating-point number/decimal to the desired amount of significant figures.

Ссылки проекта

Статистика

Метаданные

Лицензия: GNU General Public License v3 (GPLv3)

Метки SetPrecision, float, decimal, precision, sig, figs, significant, digits, scientific, notation, math, conversion, script, point, floating, scientific-notation

Сопровождающие

Классификаторы

  • Development Status
    • 3 — Alpha
    • Developers
    • End Users/Desktop
    • OSI Approved :: GNU General Public License v3 (GPLv3)
    • English
    • Microsoft :: Windows
    • Python :: 3
    • Python :: 3.9
    • Python :: 3.10
    • Scientific/Engineering :: Mathematics
    • Software Development :: Libraries :: Python Modules
    • Utilities

    Описание проекта

    SetPrecision

    About

    • SetPrecision is a small module providing a simple way to set the precision of a floating point number or decimal to the desired amount of digits following the decimal point.

    Installation

    Easiest method. Highly recommended over manual installation.

    Manual Installation

    1. Before use, navigate to intended installation location, and create a new directory.
    2. Clone repository with the git client of your preference using the following command:
    git clone https://github.com/schlopp96/SetPrecision/releases/latest
    pip install -r requirements.txt
    • (Optional): move installation directory to «path/to/Python/Libs/site_packages» to be able to import this package to a Python program like any other importable package.
    • Done!

    Usage

    • In order to use SetPrecision, start by importing the module to your Python environment:

    Note that the output is automatically rounded up when number >= 5 , and down when number < 5 .

Оцените статью