refractor: start of new concept. Will now also incorporate "Chinese 0 rule" and fractions
This commit is contained in:
parent
25bc41726e
commit
96aa72d123
@ -43,7 +43,7 @@ def to_chinese_numeral(n):
|
||||
else:
|
||||
is_negative = False
|
||||
|
||||
# Put single digits in list
|
||||
"""# Put single digits in list
|
||||
split_number = [int(x) for x in str(n)]
|
||||
|
||||
arranged_number = []
|
||||
@ -56,9 +56,9 @@ def to_chinese_numeral(n):
|
||||
arranged_number.pop(-1)
|
||||
|
||||
if is_negative:
|
||||
arranged_number.append("-")
|
||||
arranged_number.insert(0, "-")"""
|
||||
|
||||
return arranged_number
|
||||
return is_negative
|
||||
|
||||
|
||||
print(to_chinese_numeral(-90909)) # 9 10000 9
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user