Skip to content

Commit

Permalink
Merge pull request #48 from AntonKorobkov/ru_negative
Browse files Browse the repository at this point in the history
added support for negative integers for Russian language
  • Loading branch information
Virgil Dupras committed Aug 10, 2016
2 parents 0192259 + f983417 commit 85d3c99
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions num2words/lang_RU.py
Expand Up @@ -218,6 +218,9 @@ def pluralize(n, forms):


def int2word(n, feminine=False):
if n < 0:
return ' '.join([u'минус', int2word(abs(n))])

if n == 0:
return ZERO[0]

Expand Down

0 comments on commit 85d3c99

Please sign in to comment.