# সাঁচ:Mfrac/doc

Script error: No such module "Autotranslate".

This template builds an alternative form of common fractions. It takes one, two or three parameters: the optional integer (may be signed), the optional numerator and the required denominator; in this order.

 {{mfrac|x|y|z}} → ${\displaystyle \scriptstyle {x{\frac {y}{z}}}}$ {{mfrac||y|z}} → ${\displaystyle \scriptstyle {\frac {y}{z}}}$ {{mfrac|x|y}} → ${\displaystyle \scriptstyle {\frac {x}{y}}}$ {{mfrac|x||z}} → ${\displaystyle \scriptstyle {x{\frac {}{z}}}}$ {{mfrac|x||}} → ${\displaystyle \scriptstyle {\frac {1}{x}}}$ {{mfrac||y|}} → ${\displaystyle \scriptstyle {\frac {}{y}}}$ {{mfrac|||z}} → ${\displaystyle \scriptstyle {\frac {}{z}}}$ {{mfrac||w}} → ${\displaystyle \scriptstyle {\frac {}{w}}}$ {{mfrac|k}} → ${\displaystyle \scriptstyle {\frac {1}{k}}}$ {{mfrac}} →
{{mfrac|A|B|C}}
${\displaystyle \scriptstyle {A{\frac {B}{C}}}}$ (integer, numerator and denominator)
{{mfrac|A|B}}
${\displaystyle \scriptstyle {\frac {A}{B}}}$ (numerator and denominator)
{{mfrac|A}}
${\displaystyle \scriptstyle {\frac {1}{A}}}$ (special case: interpolated reciprocal (sfrac compatibility))
{{mfrac||B}}
${\displaystyle \scriptstyle {\frac {}{B}}}$ (denominator only)

## Examples

A leading 1 to allow for the relative positions compared to a standard character:

1${\displaystyle \scriptstyle {\frac {1}{2}}}$ ${\displaystyle \scriptstyle {\frac {1}{3}}}$ ${\displaystyle \scriptstyle {\frac {2}{3}}}$ ${\displaystyle \scriptstyle {\frac {1}{4}}}$ ${\displaystyle \scriptstyle {\frac {3}{4}}}$ ${\displaystyle \scriptstyle {\frac {1}{5}}}$ ${\displaystyle \scriptstyle {\frac {2}{5}}}$ ${\displaystyle \scriptstyle {\frac {3}{5}}}$ ${\displaystyle \scriptstyle {\frac {4}{5}}}$ ${\displaystyle \scriptstyle {\frac {1}{6}}}$ ${\displaystyle \scriptstyle {\frac {5}{6}}}$ ${\displaystyle \scriptstyle {\frac {1}{7}}}$ ${\displaystyle \scriptstyle {\frac {2}{7}}}$ ${\displaystyle \scriptstyle {\frac {3}{7}}}$ ${\displaystyle \scriptstyle {\frac {4}{7}}}$ ${\displaystyle \scriptstyle {\frac {5}{7}}}$ ${\displaystyle \scriptstyle {\frac {6}{7}}}$ ${\displaystyle \scriptstyle {\frac {1}{8}}}$ ${\displaystyle \scriptstyle {\frac {3}{8}}}$ ${\displaystyle \scriptstyle {\frac {5}{8}}}$ ${\displaystyle \scriptstyle {\frac {7}{8}}}$ ${\displaystyle \scriptstyle {\frac {1}{16}}}$ ${\displaystyle \scriptstyle {\frac {3}{16}}}$ ${\displaystyle \scriptstyle {\frac {5}{16}}}$ ${\displaystyle \scriptstyle {\frac {7}{16}}}$ ${\displaystyle \scriptstyle {\frac {9}{16}}}$ ${\displaystyle \scriptstyle {\frac {11}{16}}}$ ${\displaystyle \scriptstyle {\frac {13}{16}}}$ ${\displaystyle \scriptstyle {\frac {15}{16}}}$