Merge pull request #298 from Metropass/patch-1

Fixed Issue #289
This commit is contained in:
Luke Weiler
2020-10-20 18:01:36 -04:00
committed by GitHub

View File

@@ -15,7 +15,7 @@ def decimalToRomanNumeralsFunc(maxDecimal=4000):
if last_value <= 3:
solution += (roman_dict[divisor] * last_value)
elif last_value == 4:
solution += (roman_dict[divisor] * roman_dict[divisor * 5])
solution += (roman_dict[divisor] + roman_dict[divisor * 5])
elif 5 <= last_value <= 8:
solution += (roman_dict[divisor * 5] + (roman_dict[divisor] * (last_value - 5)))
elif last_value == 9: