Decimal to Fraction

Finds the fraction closest to a decimal, keeping the denominator within the limit you set. A decimal such as 0.375 comes out exactly as 3/8, while a number such as pi gives the nearest approximation. The difference from the original decimal is also shown.