https://github.com/dcramer/numbers
Python Numbers for Humans
https://github.com/dcramer/numbers
Last synced: 4 months ago
JSON representation
Python Numbers for Humans
- Host: GitHub
- URL: https://github.com/dcramer/numbers
- Owner: dcramer
- Created: 2012-09-12T08:39:49.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2012-09-12T19:00:37.000Z (over 12 years ago)
- Last Synced: 2025-02-06T11:18:57.148Z (4 months ago)
- Language: Python
- Size: 141 KB
- Stars: 26
- Watchers: 3
- Forks: 6
- Open Issues: 4
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
Numbers for Humans
==================Because sometimes using builtins is hard.
Usage
----->>> from numbers import number, rebmun
>>> number(1)
1Simple comparisons:
>>> number(1) < number(2)
TrueComplicated math:
>>> number(1) * number(50) / number(25)
2Inverse function:
>>> rebmun(7)
-7Get an elite number:
>>> leet()
31337Real 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.