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/

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.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

variable_base_factoradic-1.0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: variable_base_factoradic-1.0.tar.gz
  • Upload date:
  • Size: 2.3 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.tar.gz
Algorithm Hash digest
SHA256 8a09a878b94294f0c702509e9f12ed35322c64151d4f3a512789e2b83bc4d5c1
MD5 7e49e1b94bf12a3681c9ac8e0a37cf5b
BLAKE2b-256 07d694d44e4cbd3e919d034e51c7c3572e4f87f84046c097999f2057639f7254

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for variable_base_factoradic-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 df501a36c8f0c9d946d10076c11177c07a763e8f0d45b062877d5e0dc1a1d85a
MD5 415ba6fe5b13fbc03f66d0f51e2d2c70
BLAKE2b-256 3b88fd3b2128b39ae6ded1c33b01f041feb330767dd54ea023da3111172aef16

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