





UpperCAmelCase_     							= [
    (1000, 'M'),
    (900, 'CM'),
    (500, 'D'),
    (400, 'CD'),
    (100, 'C'),
    (90, 'XC'),
    (50, 'L'),
    (40, 'XL'),
    (10, 'X'),
    (9, 'IX'),
    (5, 'V'),
    (4, 'IV'),
    (1, 'I'),
]




def 		lowerCAmelCase_    (  __UpperCAmelCase:			str      )      ->	int:
    UpperCamelCase__							:				List[Any]          =      {'''I''': 1, '''V''': 5, '''X''': 10, '''L''': 50, '''C''': 100, '''D''': 500, '''M''': 1000}
    UpperCamelCase__							:				str          =      0
    UpperCamelCase__							:				Optional[int]          =      0
    while place < len(__UpperCAmelCase      ):
        if (place + 1 < len(__UpperCAmelCase      )) and (vals[roman[place]] < vals[roman[place + 1]]):
            total += vals[roman[place + 1]] - vals[roman[place]]
            place += 2
        else:
            total += vals[roman[place]]
            place += 1
    return total




def 		lowerCAmelCase_    (  __UpperCAmelCase:			int      )      ->	str:
    UpperCamelCase__							:				Optional[Any]          =      []
    for arabic, roman in ROMAN:
        ((UpperCamelCase__)   ,(UpperCamelCase__))							:				Optional[int]          =      divmod(__UpperCAmelCase		,   __UpperCAmelCase      )
        result.append(roman * factor      )
        if number == 0:
            break
    return "".join(__UpperCAmelCase      )


if __name__ == "__main__":
  import doctest

  doctest.testmod()








def 		lowerCAmelCase_    (  __UpperCAmelCase:			float		,   __UpperCAmelCase:			int      )      ->	float:
    if digit_amount > 0:
        return round(number - int(__UpperCAmelCase      )		,   __UpperCAmelCase      )
    return number - int(__UpperCAmelCase      )


if __name__ == "__main__":
  print(decimal_isolate(1.53, 0))
  print(decimal_isolate(35.345, 1))
  print(decimal_isolate(35.345, 2))
  print(decimal_isolate(35.345, 3))
  print(decimal_isolate(-14.789, 3))
  print(decimal_isolate(0, 2))
  print(decimal_isolate(-14.123, 1))
  print(decimal_isolate(-14.123, 2))
  print(decimal_isolate(-14.123, 3))

