Write the number as a fraction with denominator 1
If the number is a decimal, count the decimal places
Remove the decimal point and use a power of 10 as the denominator
Simplify the fraction by dividing numerator and denominator by their greatest common factor
If the number is a repeating decimal, set it equal to x
Multiply by powers of 10 to shift the repeating part
Subtract the equations to eliminate the repeating decimal
Solve for x and simplify the resulting fraction
