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 from_factoradic, to_factoradic
# Convert from decimal to factoradic
to_factoradic(5038)
# Out: "654320"
# Convert from factoradic to decimal
from_factoradic("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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ebbd60a80c4539486abd10dedbd219a9ff79a40ffd94626d03a5a6664ef790a |
|
MD5 | 3772aefd09d08063f6400a0c1faaafc1 |
|
BLAKE2b-256 | deeba4fe79f48e8d3982f0483fe8737dc49f4c09841595626a803b2261402249 |
Close
Hashes for variable_base_factoradic-1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c355efdd529e640c7e10112edcf7d9d0c8d6ae14b4c9c095cd46736997102733 |
|
MD5 | 4564b4acc386682568cfa450a886898e |
|
BLAKE2b-256 | 02383b9e0ac4dd61022c6702601641c079c3e87e4747a849f6f57513140bdfaa |