



'''simple docstring'''


def 				__lowerCamelCase				(   A__    )       ->	Dict:






   """simple docstring"""







   try:
      UpperCamelCase					=  float(__UpperCamelCase    )
   except ValueError:
      raise ValueError('Please enter a valid number'    )
   UpperCamelCase					=  decimal - int(__UpperCamelCase    )
   if fractional_part == 0:
      return int(__UpperCamelCase    ), 1
   else:
      UpperCamelCase					=  len(str(__UpperCamelCase    ).split('.'    )[1]    )
      UpperCamelCase					=  int(decimal * (10**number_of_frac_digits)    )
      UpperCamelCase					=  10**number_of_frac_digits
      UpperCamelCase				,      UpperCamelCase					=  denominator, numerator
      while True:
         UpperCamelCase					=  dividend % divisor
         if remainder == 0:
            break
         UpperCamelCase				,      UpperCamelCase					=  divisor, remainder
      UpperCamelCase				,      UpperCamelCase					=  numerator / divisor, denominator / divisor
      return int(__UpperCamelCase    ), int(__UpperCamelCase    )


if __name__ == "__main__":
   print(f'''{decimal_to_fraction(2) = }''')
   print(f'''{decimal_to_fraction(89.0) = }''')
   print(f'''{decimal_to_fraction('67') = }''')
   print(f'''{decimal_to_fraction('45.0') = }''')
   print(f'''{decimal_to_fraction(1.5) = }''')
   print(f'''{decimal_to_fraction('6.25') = }''')
   print(f'''{decimal_to_fraction('78td') = }''')









"""simple docstring"""


import re



def 					lowerCAmelCase				(    __UpperCamelCase ):




  """simple docstring"""







  return [char.split() for char in re.split(r'''[^ a-z A-Z 0-9 \s]'''		,       str_ )]



def 					lowerCAmelCase				(    __UpperCamelCase ):




  """simple docstring"""







  __A									= split_input(str_ )
  return "".join(
      [''''''.join([char.capitalize() for char in sub_str] ) for sub_str in string_split] )



def 					lowerCAmelCase				(    __UpperCamelCase		,       __UpperCamelCase		,       __UpperCamelCase ):




  """simple docstring"""







  try:
    __A									= split_input(__UpperCamelCase )
    if upper:
      __A									= ''''''.join(
          [
              separator.join([char.upper() for char in sub_str] )
              for sub_str in string_split
          ] )
    else:
      __A									= ''''''.join(
          [
              separator.join([char.lower() for char in sub_str] )
              for sub_str in string_split
          ] )
    return res_str
  except IndexError:
    return "not valid string"



def 					lowerCAmelCase				(    __UpperCamelCase ):




  """simple docstring"""







  return to_simple_case(__UpperCamelCase )



def 					lowerCAmelCase				(    __UpperCamelCase ):




  """simple docstring"""







  try:
    __A									= to_simple_case(__UpperCamelCase )
    return res_str[0].lower() + res_str[1:]
  except IndexError:
    return "not valid string"



def 					lowerCAmelCase				(    __UpperCamelCase		,       __UpperCamelCase ):




  """simple docstring"""







  return to_complex_case(__UpperCamelCase		,       __UpperCamelCase		,       '''_''' )



def 					lowerCAmelCase				(    __UpperCamelCase		,       __UpperCamelCase ):




  """simple docstring"""







  return to_complex_case(__UpperCamelCase		,       __UpperCamelCase		,       '''-''' )


if __name__ == "__main__":
       __import__('doctest').testmod()




