mirror of
https://github.com/DeaDvey/mathgenerator.git
synced 2025-11-28 06:25:23 +01:00
Merge branch 'master' of https://github.com/Todarith/mathgenerator
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