mirror of
https://github.com/bblaz/num2words.git
synced 2025-12-06 06:42:25 +00:00
[ADD] to ordinal number for Turkish
This commit is contained in:
committed by
Willem Van Onsem
parent
6bf14bee7b
commit
b5875b81f7
@@ -806,6 +806,10 @@ class Num2Word_TR(Num2Word_Base):
|
|||||||
|
|
||||||
return wrd
|
return wrd
|
||||||
|
|
||||||
|
def to_ordinal_num(self, value):
|
||||||
|
self.verify_ordinal(value)
|
||||||
|
return "%s%s" % (value, self.to_ordinal(value)[-4:])
|
||||||
|
|
||||||
def to_splitnum(self, val):
|
def to_splitnum(self, val):
|
||||||
float_digits = str(int(val * 10 ** self.precision))
|
float_digits = str(int(val * 10 ** self.precision))
|
||||||
if not int(val) == 0:
|
if not int(val) == 0:
|
||||||
|
|||||||
Reference in New Issue
Block a user