You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would love to render the unicode equivalent of a fraction. If I enter 1/16 for example, I want to see superscript 1 (¹) over (⁄) subscript 16(₁₆) . If I enter a fraction that is available already as a single code point, print that instead (1/8→⅛).
For bonus points, reduce the fraction if it can be reduced, and show both the input fraction and the reduced fraction in unicode form.
For even more bonus points, since Quick Info already evaluates expressions, perhaps any result that you are currently showing in decimal notation could also be shown in rational form.
Examples
Input
Output
Output
1 / 16
¹⁄₁₆
2/16
²⁄₁₆
⅛
0.125
⅛
2 + 1 / 5
2¹⁄₅
¹¹⁄₅
The text was updated successfully, but these errors were encountered:
I would love to render the unicode equivalent of a fraction. If I enter
1/16
for example, I want to see superscript1
(¹
) over (⁄
) subscript16
(₁₆
) . If I enter a fraction that is available already as a single code point, print that instead (1/8
→⅛
).For bonus points, reduce the fraction if it can be reduced, and show both the input fraction and the reduced fraction in unicode form.
For even more bonus points, since Quick Info already evaluates expressions, perhaps any result that you are currently showing in decimal notation could also be shown in rational form.
Examples
1 / 16
2/16
0.125
2 + 1 / 5
The text was updated successfully, but these errors were encountered: