Skip to main content

Package which contains function for converting between different number system

Project description

License Release Supported versions Docs Code Coverage Build status Appveyor Build Status Travis CI Contact Blog

numeral-system-py

Convert from one numeric system to other in python.

Supports following:

  • roman numerals

  • positional numerals (like binary, arabic (decimal), hexadecimal and others)

Example of usage

Roman

>>> import numeral_system
>>> numeral_system.roman.encode(7)
'VII'
>>> numeral_system.roman.decode('XXII')
22

Positional

>>> import numeral_system
>>> numeral_system.positional.encode(42, 2)
'101010'
>>> numeral_system.positional.encode(12, 3)
'110'
>>> numeral_system.positional.decode(101, 2)
5
>>> numeral_system.positional.decode('AF', 16)
175

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

numeral-system-py-0.2.0.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

numeral_system_py-0.2.0-py2.py3-none-any.whl (6.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file numeral-system-py-0.2.0.tar.gz.

File metadata

  • Download URL: numeral-system-py-0.2.0.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.1

File hashes

Hashes for numeral-system-py-0.2.0.tar.gz
Algorithm Hash digest
SHA256 93bafd50c9ca082b1aa4377ca016320ef6ef2ef1c015524ecba87e5b648ed01a
MD5 5f50020d20112e759e5e63485f155bd5
BLAKE2b-256 fd174c0f41e626896928e2fe719a1dfc976953eb52effbf1d3b408ba1668e79e

See more details on using hashes here.

File details

Details for the file numeral_system_py-0.2.0-py2.py3-none-any.whl.

File metadata

  • Download URL: numeral_system_py-0.2.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.1

File hashes

Hashes for numeral_system_py-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f75f9ec2d26b064408b87f21dd19adc1d164479059edf64da20967353014262c
MD5 67d005e4bb66419dd503788457958e88
BLAKE2b-256 70d1f7834c1ea13166d9790ee4189d811a2e92ce6deec1dd4a0487c46deeeb51

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