

"""simple docstring"""






def 					UpperCamelCase    (	_lowerCAmelCase   :  float,     _lowerCAmelCase   :  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.3_45, 1))
						print(decimal_isolate(35.3_45, 2))
						print(decimal_isolate(35.3_45, 3))
						print(decimal_isolate(-14.7_89, 3))
						print(decimal_isolate(0, 2))
						print(decimal_isolate(-14.1_23, 1))
						print(decimal_isolate(-14.1_23, 2))
						print(decimal_isolate(-14.1_23, 3))






'''simple docstring'''




def 	UpperCamelCase_							(					_UpperCAmelCase  :      str			,	_UpperCAmelCase  :      str    )    ->    float:


       """simple docstring"""







       def get_matched_characters(_UpperCAmelCase  :      str			,	_UpperCAmelCase  :      str    ) -> str:
              _UpperCAmelCase     :  Tuple							      =    []
              _UpperCAmelCase     :  Dict							      =    min(len(_stra    )			,	len(_stra    )    ) // 2
              for i, l in enumerate(_stra    ):
                     _UpperCAmelCase     :  int							      =    int(max(0			,	i - limit    )    )
                     _UpperCAmelCase     :  Any							      =    int(min(i + limit + 1			,	len(_stra    )    )    )
                     if l in _stra[left:right]:
                            matched.append(_UpperCAmelCase    )
                            _UpperCAmelCase     :  List[Any]							      =    F"""{_stra[0:_stra.index(_UpperCAmelCase    )]} {_stra[_stra.index(_UpperCAmelCase    ) + 1:]}"""

              return "".join(_UpperCAmelCase    )

       # matching characters
       _UpperCAmelCase     :  Union[str, Any]							      =    get_matched_characters(_UpperCAmelCase			,	_UpperCAmelCase    )
       _UpperCAmelCase     :  Tuple							      =    get_matched_characters(_UpperCAmelCase			,	_UpperCAmelCase    )
       _UpperCAmelCase     :  Tuple							      =    len(_UpperCAmelCase    )

       # transposition
       _UpperCAmelCase     :  Optional[Any]							      =    (
           len([(ca, ca) for ca, ca in zip(_UpperCAmelCase			,	_UpperCAmelCase    ) if ca != ca]    ) // 2
       )

       if not match_count:
              _UpperCAmelCase     :  Dict							      =    0.0
       else:
              _UpperCAmelCase     :  Optional[int]							      =    (
                  1
                  / 3
                  * (
                      match_count / len(_UpperCAmelCase    )
                      + match_count / len(_UpperCAmelCase    )
                      + (match_count - transpositions) / match_count
                  )
              )

       # common prefix up to 4 characters
       _UpperCAmelCase     :  str							      =    0
       for ca, ca in zip(stra[:4]			,	stra[:4]    ):
              if ca == ca:
                     prefix_len += 1
              else:
                     break

       return jaro + 0.1 * prefix_len * (1 - jaro)


if __name__ == "__main__":
  import doctest

  doctest.testmod()
  print(jaro_winkler("""hello""", """world"""))

