Skip to content
Python Numbers for Humans
Python
Find file
Pull request Compare This branch is 13 commits behind dcramer:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
README.rst
numbers.py

README.rst

Numbers for Humans

Because sometimes using builtins is hard.

Usage

>>> import numbers
>>> number(1)
1

Simple comparisons:

>>> number(1) < number(2)
True

Complicated math:

>>> number(1) * number(50) / number(25)
2

Real results:

>>> number(sys.maxint)
"It's over 9000!"

Credits

This project was inspired by prices (and many others), because sometimes understanding your code should be just as difficult as maintaining your data in MongoDB.

Something went wrong with that request. Please try again.