Write the number in the form p/q
Check that p and q are integers
Check that q is not 0
Convert terminating decimals to fractions
Convert repeating decimals to fractions
Simplify the fraction if possible
Verify the number can be expressed exactly as a ratio of two integers
