I know there are HTML entities for 1/2, 1/4, and 3/4, but are there others? Like 1/3 or 1/8? Is there a good way to encode arbitrary fractions?
The HTML5 MathML <mfrac> tag is an inbuilt element in HTML5. It is use to add fraction symbol between two digits or equations.
how about 15⁄16? (<sup>15</sup>⁄<sub>16</sub>)
1/2 → ½ or ½ 1/4 → ¼ or ¼ 3/4 → ¾ or ¾ 1/8 → ⅛ or ⅛ 3/8 → ⅜ or ⅜ 5/8 → ⅝ or ⅝ 7/8 → ⅞ or ⅞ 1/3 → ⅓ 2/3 → ⅔ 1/5 → ⅕ 2/5 → ⅖ 3/5 → ⅗ 4/5 → ⅘ 1/6 → ⅙ 5/6 → ⅚
...but you could also encode them as decimals: 15/16 = 0.9375 ;)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With