mirror of
https://github.com/DeaDvey/mathgenerator.git
synced 2025-11-28 14:35:23 +01:00
Fixed Issue #289
Removed the multiplication, added '+' for proper concatenation
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user