attr: numeral_system.__doc__
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
Close
Hashes for numeral-system-py-0.2.1a0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11fba0ece5b31d935e9d5d4472175af47acd6d3a58dd98efc3038aa0255d34d2 |
|
MD5 | 4d00ee458f5deef658ea7e6e82bc6ee0 |
|
BLAKE2b-256 | bbc614f1e4d5317bee8103421b361f374421d139d5cbb653d381bc4b97bfd598 |
Close
Hashes for numeral_system_py-0.2.1a0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1a7415063cd1e04d1734d9ac0e6d6d9ef4f960d20c9099c1a3fc149b37ae18c |
|
MD5 | d5a6e21382b88f5ee142798adc4cbd3c |
|
BLAKE2b-256 | c54632817fecb216b3607881e92c5062e2f0230dd44fffa56dd255987a5d7d74 |