Skip to main content

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

variable_base_factoradic-1.2.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

variable_base_factoradic-1.2-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file variable_base_factoradic-1.2.tar.gz.

File metadata

  • Download URL: variable_base_factoradic-1.2.tar.gz
  • Upload date:
  • Size: 2.5 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

Hashes for variable_base_factoradic-1.2.tar.gz
Algorithm Hash digest
SHA256 4ebbd60a80c4539486abd10dedbd219a9ff79a40ffd94626d03a5a6664ef790a
MD5 3772aefd09d08063f6400a0c1faaafc1
BLAKE2b-256 deeba4fe79f48e8d3982f0483fe8737dc49f4c09841595626a803b2261402249

See more details on using hashes here.

File details

Details for the file variable_base_factoradic-1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for variable_base_factoradic-1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c355efdd529e640c7e10112edcf7d9d0c8d6ae14b4c9c095cd46736997102733
MD5 4564b4acc386682568cfa450a886898e
BLAKE2b-256 02383b9e0ac4dd61022c6702601641c079c3e87e4747a849f6f57513140bdfaa

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page