Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Python Numbers for Humans

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 MANIFEST.in
Octocat-spinner-32 README.rst
Octocat-spinner-32 numbers.py
Octocat-spinner-32 setup.py
README.rst

Numbers for Humans

Because sometimes using builtins is hard.

Usage

>>> from numbers import number, rebmun
>>> number(1)
1

Simple comparisons:

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

Complicated math:

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

Inverse function:

>>> rebmun(7)
-7

Get an elite number:

>>> leet()
31337

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.