Template:Rndfrac/doc

This template rounds to a fraction. It takes two parameters. Fractions are expressed in the simplest terms.
 * 1) the number to be rounded (any real number)
 * 2) the denominator to be rounded to (positive interger)

The template calls gcd and rndfrac/out.