Fraction

0

Usage[edit]

{{fraction|<number>}}

This template takes a decimal number and converts the fraction part into the appropriate character entity. Only supports quarter fractions, i.e. 0.25, 0.5, and 0.75. Any other fraction will simply be returned as input.

Examples
{{fraction|0.5}}
→ ½
{{fraction|4.25}}
→ 4¼
{{fraction|1.2}}
→ 1.2
Premium Membership

Upgrade to premium membership and take advantage of all the premium benefits, including complete ad removal across the entire website, for only $8.99 per year! Click here for more info.