Find nearest fraction for a decimal number

Simple calculator to find a fraction that closely matches the given decimal number. It will output fractions of increasing accuracy up to decimal places.