Jump to content

Template:Dec to frac: Difference between revisions

From IdeaWazaWiki
wikademia>Ezhiki
m trying harder
wikademia>Ezhiki
m make small for cleaner output
Line 1: Line 1:
{{frac|{{#ifexpr:{{floor|{{{1}}}}}<>0|{{floor|{{{1}}}}}}}|{{#expr:((({{#expr:{{{1}}}-{{floor|{{{1}}}}}}})*{{{2}}}) round 0)/{{gcd|((({{#expr:{{{1}}}-{{floor|{{{1}}}}}}})*{{{2}}}) round 0)|{{{2}}}}}}}|{{#expr:{{{2}}}/{{gcd|((({{#expr:{{{1}}}-{{floor|{{{1}}}}}}})*{{{2}}}) round 0)|{{{2}}}}}}}}}
<small>{{frac|{{#ifexpr:{{floor|{{{1}}}}}<>0|{{floor|{{{1}}}}}}}|{{#expr:((({{#expr:{{{1}}}-{{floor|{{{1}}}}}}})*{{{2}}}) round 0)/{{gcd|((({{#expr:{{{1}}}-{{floor|{{{1}}}}}}})*{{{2}}}) round 0)|{{{2}}}}}}}|{{#expr:{{{2}}}/{{gcd|((({{#expr:{{{1}}}-{{floor|{{{1}}}}}}})*{{{2}}}) round 0)|{{{2}}}}}}}}}</small>

Revision as of 19:12, 3 August 2007