Decimals and fractions

Use a decimal point. Parentheses mark repeating digits, for example 0.1(6).

Keep the ratio exact while changing its notation

Decimal to fraction accepts one decimal literal. Use parentheses around the repeating digits: 0.1(6) means 0.1666… . It is different from the finite decimal 0.1666.

A finite decimal becomes an integer divided by a power of ten. For a repeating decimal, shifting by a full repetition and subtracting removes the repeating tail. In the reverse direction the stored ratio stays exact; a long decimal display can be truncated and is labelled when it is.

Worked example: 0.1(6) = 1/6

Let x=0.1666… . Then 10x=1.666… and 100x=16.666… . Subtract to get 90x=15, so x=15/90=1/6.

The reverse conversion of 1/6 has one nonrepeating digit and then a repeating 6. Its notation is 0.1(6), not an exact finite decimal.

Load example fills the form without calculating. Choose its primary action to work it out.

Sources and related calculators

The method and worked example here are original. Sources describe the underlying mathematics or notation; calculation choices and limits are in the precision and syntax guide.