Template:Dec to frac/doc

This template converts decimal fractions to vulgar fractions. It takes two parameters:
 * fraction to be converted;
 * resulting vulgar fraction's denominator

If the decimal fraction includes an integer part, it is retained in the output. If the resulting vulgar fraction can be resolved in lower terms than specified denominator, it is resolved, but due to algorithm limitation fractions with relatively large numerators/denominators may be left unresolved.

Examples

 * &rarr;
 * &rarr;

Sometimes it is impossible to convert a decimal to a vulgar fraction with requested denominator, in which cases the output is simply an input rounded up: ...or down:
 * &rarr;
 * &rarr;

When that is unacceptable, increase the denominator:
 * &rarr;
 * &rarr;