mirror of
https://github.com/bblaz/num2words.git
synced 2025-12-06 06:42:25 +00:00
Sync with files in zip
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
'''
|
||||
Module: num2word_EU.py
|
||||
Requires: num2word_base.py
|
||||
Version: 1.0
|
||||
Version: 1.1
|
||||
|
||||
Author:
|
||||
Taro Ogawa (BLAHhydroxideBLAH@inorbit.removeBLAHtwice.com)
|
||||
Taro Ogawa (tso@users.sourceforge.org)
|
||||
|
||||
Copyright:
|
||||
Copyright (c) 2003, Taro Ogawa. All Rights Reserved.
|
||||
@@ -15,6 +15,9 @@ Licence:
|
||||
|
||||
Data from:
|
||||
http://www.uni-bonn.de/~manfear/large.php
|
||||
|
||||
History:
|
||||
1.1: add to_currency()
|
||||
'''
|
||||
from num2word_base import Num2Word_Base
|
||||
|
||||
@@ -34,3 +37,8 @@ class Num2Word_EU(Num2Word_Base):
|
||||
tens = ["dec", "vigint", "trigint", "quadragint", "quinquagint",
|
||||
"sexagint", "septuagint", "octogint", "nonagint"]
|
||||
self.high_numwords = ["cent"]+self.gen_high_numwords(units, tens, lows)
|
||||
|
||||
def to_currency(self, val, longval=True, jointxt=""):
|
||||
return self.to_splitnum(val, hightxt="Euro/s", lowtxt="Euro cent/s",
|
||||
jointxt=jointxt, longval=longval)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user