Modèle:Fraction
0
Usage
{{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}}
→ 4Modèle:1/4{{fraction|1.2}}
→ 1.2