def        lowerCAmelCase_			(					__A							)					->    tuple[int, int]:







      '''simple docstring'''


      try:
            UpperCAmelCase__								=  float(__A							)
      except ValueError:
            raise ValueError("Please enter a valid number"							)
      UpperCAmelCase__								=  decimal - int(__A							)
      if fractional_part == 0:
            return int(__A							), 1
      else:
            UpperCAmelCase__								=  len(str(__A							).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(__A							), int(__A							)


if __name__ == "__main__":
      print(f'''{decimal_to_fraction(2) = }''')
      print(f'''{decimal_to_fraction(8_9.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") = }''')




from typing import TYPE_CHECKING

from ...utils import _LazyModule


UpperCamelCase__    							= {'tokenization_bertweet': ['BertweetTokenizer']}


if TYPE_CHECKING:
      from .tokenization_bertweet import BertweetTokenizer

else:
      import sys

      UpperCamelCase__    							= _LazyModule(__name__, globals()['__file__'], _import_structure, module_spec=__spec__)



