Fraction Approximator

This script allows you to convert decimal numbers into fractions like the number 0.4222222222222222 equals 19/45. You could also try to approximate an irrational number like pi. The script allows you to choose how precise the approximation should be by pressing the "more precise" and "less precise" buttons. The program is based on the principle of approximation by continued fractions.

Enter number:

Guess:

Deviation:

(? iterations)

Validate: xHTML or CSS