Template:Rndfrac/doc
Appearance
This is a documentation subpage for Template:Rndfrac. It may contain usage information, categories and other content that is not part of the original template page. |
This template rounds to a fraction. It takes two parameters.
- the number to be rounded (any real number)
- the denominator to be rounded to (positive interger)
Fractions are expressed in the simplest terms.
The template calls {{gcd}} and {{rndfrac/out}}.
{{rndfrac|0.1234|8}}
→ 1⁄8{{rndfrac|12.65|6}}
→ 12 4⁄6{{rndfrac|-9.123|20}}
→ −9 2⁄20
See also
[edit source]