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 integer)

The template calls gcd and rndfrac/out.



Code
Main template rndfrac

Sub-template rndfrac/out