## Decimals to Fractions

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

As for recurring decimal fractions 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 recurring as well as terminating decimal fractions into
vulgar fractions after you have entered the non-recurring part of the decimal and the recurring
decimal separately.

### Example:

non-recurring part : 1.20
recurring decimal : 045
___
1.20045 = 120/100 + 1/2220 = 533/444

### Siehe auch:

Wikipedia: Repeating decimal