Python implementation of Randall Munroe's variable base factoradic number system: https://xkcd.com/2835/
Project description
Variable-base Factoradic numbers
Implementation of https://xkcd.com/2835/
Installation
https://pypi-hypernode.com/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
File details
Details for the file variable_base_factoradic-1.0.2.tar.gz
.
File metadata
- Download URL: variable_base_factoradic-1.0.2.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.10.13 Linux/6.2.0-1012-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a43834215a5469e8293908d37610cb7394745f7905aa110562e19b4c2c693f6 |
|
MD5 | 32fa59fcc172c19e25e32929d9bf9f2c |
|
BLAKE2b-256 | 9b93e1ed94549791af8b098b5d844785e3c55dec00610721c039a54650b439b8 |
File details
Details for the file variable_base_factoradic-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: variable_base_factoradic-1.0.2-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.10.13 Linux/6.2.0-1012-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58d40738dccc06241e8de2cfe8644b14127a9f9356c3a441ca71cc793db73609 |
|
MD5 | 6baa461442bfe3ca1b06e732c2dcf060 |
|
BLAKE2b-256 | 3b01e5372d90a3346d6a4c68f113d688f4f704c95b14e4db3d74ace801bed5d2 |