Decimals to Fractions

Each decimal may be represented as a fraction. In the case of a terminating decimal you simply move the decimal point to the right and take the corresponding power of ten as its denominator.

As for repeating decimals see formulas below:

   _           _                 _
 0.1 = 1/9 , 0.2 = 2/9 , ... , 0.9 = 9/9 = 1
    _             _              
 0.01 = 1/90 , 0.02 = 2/90 , ... 
   __            __                   ___
 0.01 = 1/99 , 0.02 = 2/99 , ... 0.000001 = 1/999000

The program transforms repeating as well as terminating decimals into fractions after you have entered the non-repeating part of the decimal and the repeating digits separately.

Example:

Non-repeating part : 1.20
        Non repeating block : 045
    ___
1.20045 = 120/100 + 45/99900 = 533/444

Siehe auch:

Wikipedia: Repeating decimal