import fractions


def change_to_rational(number):
    """convert a number to rantional
    Keyword arguments: number
    return: tuple like (1, 2), (numerator, denominator)
    """
    f = fractions.Fraction(str(number))
    return (f.numerator, f.denominator)