Template:Fraction
From Guild Wars 2 Wiki
Jump to navigationJump to search
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