This is a documentation subpage for ಟೆಂಪ್ಲೇಟು:Frac. It may contain usage information, categories and other content that is not part of the original ಟೆಂಪ್ಲೇಟು page. |
Use of this template should be secondary to producing fractions per the appropriate unicodes for fractions. Typically the following characters would be reproduced using the unicode ¼ ½ ¾ ⅓ ⅔ ⅛ ⅜ ⅝ ⅞ |
Usage
ಸಂಪಾದಿಸಿThis template builds common fractions, using a fraction slash. It takes one, two or three parameters: the optional integer (may be signed), the optional numerator and the required denominator; in this order.
{{frac|A|B|C}}
- AB⁄C (integer, numerator and denominator)
A<s style="display:none">+</s><small><sup>B</sup><big>⁄</big><sub>C</sub></small>
{{frac|A|B}}
- A⁄B (numerator and denominator)
<small><sup>A</sup><big>⁄</big><sub>B</sub></small>
{{frac|A}}
- 1⁄A (denominator only)
<small><sup>1</sup><big>⁄</big><sub>A</sub></small>
See also
ಸಂಪಾದಿಸಿ- {{mfrac}}, displays common fractions using LaTeX markup, e.g.
- {{sfrac}} for horizontal fraction line, e.g. 160
- {{sfrac nobar}}, displays common fractions without a fraction line, e.g. 160