8000 GitHub - justcallmelarry/betterdecimal
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

justcallmelarry/betterdecimal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Better Decimal

The power of Decimal with some quality of life improvements:

  • Ability to enter floats: Number(1.23)
  • Ability to do calculations with floats: Number(1.5) * 1.5
  • Working rounding functionality: round(Number(1.495), 2)

Actually subclasses Decimal, so all other usecases can still be used as normal (for example .quantize() if you need )

Installation with pip

Like you would install any other Python package, use pip, poetry, pipenv or your weapon of choice.

$ pip install number

Usage and examples

Use-case

from number import Number

514B

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0