项目作者: carbeck

项目描述 :
Converts numbers to Ayeri number words.
高级语言: Python
项目地址: git://github.com/carbeck/ayerinumbers.git
创建时间: 2015-02-04T22:36:48Z
项目社区:https://github.com/carbeck/ayerinumbers

开源协议:

下载


AYERINUMBERS.PY

Converts numbers to Ayeri number words. It currently only converts integer numbers, no fractions decimal or otherwise.

Executing the Script

You’ll need Python 3 for this. Note that this is a command-line program. python ayerinumbers.py -h gives you some advice on the input:

  1. positional arguments:
  2. n an integer number 0 <= n < 12^44
  3. optional arguments:
  4. -h, --help show this help message and exit
  5. -s, --show-conversion show the conversion into base 12

You may need to call the python script by prefixing either python or python3,
or make it executable e.g. by cding to the directory the file is in, and then
doing chmod +x ayerinumbers.py. You should then be able to just start the
program with ./ayerinumbers.py.

Some input/output examples:

  1. $ ./ayerinumbers.py 54292
  2. samang sam menang itolan-iri nay yo
  3. $ ./ayerinumbers.py 5106212
  4. samang menang men henlan-miye menang samlan-tam veyalan-hen
  5. $ ./ayerinumbers.py 636
  6. menang yo irilan
  7. $ ./ayerinumbers.py -s 20736
  8. 1,0000₁₂: samang men
  9. $ ./ayerinumbers.py --show-conversion 3457
  10. 2001₁₂: menang samlan nay men

Disclaimer

This software comes “as-is” with no warranties expressed or implied.