Skip to main content

Python implementation of Randall Munroe's variable base factoradic number system: https://xkcd.com/2835/

Project description

Variable-base Factoadic 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

variable_base_factoradic-1.0.1.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

variable_base_factoradic-1.0.1-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: variable_base_factoradic-1.0.1.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

Hashes for variable_base_factoradic-1.0.1.tar.gz
Algorithm Hash digest
SHA256 889a3f9d28570e60636e653dc31c92c6f5380de7c3f27d3e292de13b0fb11490
MD5 4fccf9c49d230af6c9a5984510ef1d49
BLAKE2b-256 220034ff964bbb528287cdf4e29ce24470bf7bf0b2aa6c484bc32d7aea40c3b4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for variable_base_factoradic-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 667d8bf92a6f5abde0eebec85af5e7752b7e7334e3cd62b1afdb4a7f91dea39d
MD5 60568d63bb4b9874fba49e32881e9e53
BLAKE2b-256 2c2fac4d86fde987d314695fb4c5182baca8da0679918d76715d2db9100be271

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