Spaces:
Build error
Build error
Arnaudding001
commited on
Commit
•
65d436e
1
Parent(s):
935db18
Update app.py
Browse files
app.py
CHANGED
@@ -40,13 +40,14 @@ def convert_to_french_letters(number):
|
|
40 |
words.append('cent')
|
41 |
else:
|
42 |
words.append(units[hundreds] + ' cent')
|
|
|
43 |
if tens_and_units > 0:
|
44 |
if tens_and_units < 10:
|
45 |
words.append(units[tens_and_units])
|
46 |
elif tens_and_units < 20:
|
47 |
words.append('dix-' + units[tens_and_units-10])
|
48 |
else:
|
49 |
-
tens_digit = tens[tens_and_units
|
50 |
units_digit = units[tens_and_units % 10]
|
51 |
if tens_digit == 'vingt' and units_digit == 'un':
|
52 |
tens_digit = 'vingt-et-un'
|
|
|
40 |
words.append('cent')
|
41 |
else:
|
42 |
words.append(units[hundreds] + ' cent')
|
43 |
+
|
44 |
if tens_and_units > 0:
|
45 |
if tens_and_units < 10:
|
46 |
words.append(units[tens_and_units])
|
47 |
elif tens_and_units < 20:
|
48 |
words.append('dix-' + units[tens_and_units-10])
|
49 |
else:
|
50 |
+
tens_digit = tens[int(tens_and_units / 10)]
|
51 |
units_digit = units[tens_and_units % 10]
|
52 |
if tens_digit == 'vingt' and units_digit == 'un':
|
53 |
tens_digit = 'vingt-et-un'
|