Package which contains function for converting between different number system
Project description
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
93bafd50c9ca082b1aa4377ca016320ef6ef2ef1c015524ecba87e5b648ed01a
|
|
| MD5 |
5f50020d20112e759e5e63485f155bd5
|
|
| BLAKE2b-256 |
fd174c0f41e626896928e2fe719a1dfc976953eb52effbf1d3b408ba1668e79e
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f75f9ec2d26b064408b87f21dd19adc1d164479059edf64da20967353014262c
|
|
| MD5 |
67d005e4bb66419dd503788457958e88
|
|
| BLAKE2b-256 |
70d1f7834c1ea13166d9790ee4189d811a2e92ce6deec1dd4a0487c46deeeb51
|