Split a real number into the numerator and denominator.