Added ability to display cents as numbers

This commit is contained in:
Marius Grigaitis
2011-07-07 17:42:29 +03:00
parent dee0d135ac
commit bbc175b3bc
5 changed files with 16 additions and 8 deletions

View File

@@ -34,9 +34,9 @@ from num2word_EN import Num2Word_EN
class Num2Word_EN_EUR(Num2Word_EN):
def to_currency(self, val, longval=True):
def to_currency(self, val, longval=True, cents=True, jointxt="and"):
return self.to_splitnum(val, hightxt="euro/s", lowtxt="cents",
jointxt="and", longval=longval)
jointxt=jointxt, longval=longval, cents = cents)
n2w = Num2Word_EN_EUR()