Skip to main content

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

Release files for numeral-system-py 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for numeral-system-py 0.2.0
File Size Uploaded
numeral-system-py-0.2.0.tar.gz 5.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for numeral-system-py 0.2.0
File Interpreter ABI Platform
numeral_system_py-0.2.0-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 12.2 kB

Release files / numeral-system-py-0.2.0.tar.gz

Download URL numeral-system-py-0.2.0.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
93bafd50c9ca082b1aa4377ca016320ef6ef2ef1c015524ecba87e5b648ed01a
BLAKE2b-256 checksum
How to use checksums
fd174c0f41e626896928e2fe719a1dfc976953eb52effbf1d3b408ba1668e79e
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / numeral_system_py-0.2.0-py2.py3-none-any.whl

Download URL numeral_system_py-0.2.0-py2.py3-none-any.whl
Size 6.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
f75f9ec2d26b064408b87f21dd19adc1d164479059edf64da20967353014262c
BLAKE2b-256 checksum
How to use checksums
70d1f7834c1ea13166d9790ee4189d811a2e92ce6deec1dd4a0487c46deeeb51
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page