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}}0.5½
{{fraction|4.25}} → 40.25¼
{{fraction|1.2}} → 1.2