mirror of
https://github.com/bblaz/num2words.git
synced 2025-12-06 06:42:25 +00:00
Merge pull request #101 from shulcsm/expose_to_currency
Expose to to_currency.
This commit is contained in:
@@ -279,6 +279,8 @@ class Num2Word_LV(object):
|
||||
def to_ordinal(self, number):
|
||||
raise NotImplementedError()
|
||||
|
||||
def to_currency(self, n, currency='EUR', cents=True, seperator=','):
|
||||
return to_currency(n, currency, cents, seperator)
|
||||
|
||||
if __name__ == '__main__':
|
||||
import doctest
|
||||
|
||||
@@ -284,6 +284,9 @@ class Num2Word_PL(object):
|
||||
def to_ordinal(self, number):
|
||||
raise NotImplementedError()
|
||||
|
||||
def to_currency(self, n, currency='EUR', cents=True, seperator=','):
|
||||
return to_currency(n, currency, cents, seperator)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
import doctest
|
||||
|
||||
@@ -306,6 +306,9 @@ class Num2Word_RU(object):
|
||||
def to_ordinal(self, number):
|
||||
raise NotImplementedError()
|
||||
|
||||
def to_currency(self, n, currency='EUR', cents=True, seperator=','):
|
||||
return to_currency(n, currency, cents, seperator)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
import doctest
|
||||
|
||||
@@ -311,6 +311,9 @@ class Num2Word_UK(object):
|
||||
def to_ordinal(self, number):
|
||||
raise NotImplementedError()
|
||||
|
||||
def to_currency(self, n, currency='EUR', cents=True, seperator=','):
|
||||
return to_currency(n, currency, cents, seperator)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
import doctest
|
||||
|
||||
Reference in New Issue
Block a user