Python implementation of Randall Munroe'xs variable base factoradic number system: https://xkcd.com/2835/
Project description
Variable-base Factoradic numbers
Implementation of https://xkcd.com/2835/
Installation
https://pypi.org/project/variable-base-factoradic/
pip install variable-base-factoradic
Usage
from variable_base_factoradic import convert
# Convert from decimal to factoradic
convert(5038)
# Out: "654320"
# Convert from factoradic to decimal
convert("654320")
# Out: 5038
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for variable_base_factoradic-1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb4f5295b2bbb12627014f520a5a7b119f90ea6baf397507f05ef1cc70432bdb |
|
MD5 | 7531490702cfad54755e983aa5dd2b43 |
|
BLAKE2b-256 | 92fc463299123d9c0baf056a932c94242882e9f7528b2362f1e9b39a2efbccc7 |
Close
Hashes for variable_base_factoradic-1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b293fd44bc9c8d47ef1863c010db87346cd52065582f06e58ba9b18a08016d4a |
|
MD5 | 0bef7d1621892736aac31e8d16b09504 |
|
BLAKE2b-256 | 70457d6ab17906c8db5729a1b004ab1f2a43e7fa820c173e091d1e986c4dec91 |