Worked example

Operation: Decimal
a: 0.125
0.125 = 125/1000 = (125 ÷ 125)/(1000 ÷ 125)

→ 1/8

Method and scope

Finite decimal notation only, up to 1,000 characters; repeating notation and exponents are not accepted. The fraction is exact; the decimal display has up to 16 significant digits.

0.125 = 125/1000 = 1/8

Sources