This template renders fractions in vertical form.

Usage

This template takes anywhere between none and three arguments: A mixed number is notated with three (integer part and fraction), a normal fraction with two, and entering just one will notate a reciprocal.

Examples

You type You get
{{sfrac|A|B|C}} ⁠A+B/C⁠ (integer, numerator, and denominator)
{{sfrac|B|C}} ⁠B/C⁠ (numerator and denominator)
{{sfrac|C}} ⁠1/C⁠ (just denominator)