Skip to content

Commit

Permalink
add str_to_number to Turkish
Browse files Browse the repository at this point in the history
  • Loading branch information
cyriaka90 committed May 6, 2021
1 parent 93822f2 commit fca2e87
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions num2words/lang_TR.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@

from __future__ import unicode_literals

from decimal import Decimal


class Num2Word_TR(object):
def __init__(self):
Expand Down Expand Up @@ -114,6 +116,9 @@ def __init__(self):
self.total_digits_outside_triplets = 0
self.order_of_last_zero_digit = 0

def str_to_number(self, value):
return Decimal(value)

def to_cardinal(self, value):
wrd = ""
is_cardinal = self.verify_cardinal(value)
Expand Down

0 comments on commit fca2e87

Please sign in to comment.