Skip to content

pceuropa/number-integer-to-number-string

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

number-integer-to-number-string

Convert number into polish words Polish documentation

Browser <- Js AJAX -> REST API (django) <-> numbetostring.py (python3)

Class numbersinword convert number to list. On groups of number (by 3 number) iterate two functions: first set name of groups (ex. milionów, tysięcy) second set name of number in group (ex. sto dwadzieścia). At the end method toString() scale and return string (or False if exception)

Download and install packages

git clone https://github.com/pceuropa/number-integer-to-number-string.git
cd number-integer-to-number-string
pip3 install -r requirements.txt

Run app django

./manage.py runserver

Tests

./manage.py test

Execute only python method (without Web API)

python3 app/numbersinword.py