Module:Simplified fraction: Difference between revisions
Tristanbay (talk | contribs) seeing if using regular super- and subscripts is a good idea |
Tristanbay (talk | contribs) Undo revision 214299 by Tristanbay (talk) Tag: Undo |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 23: | Line 23: | ||
ft = string.format("%d", num) | ft = string.format("%d", num) | ||
elseif whole ~= 0 then | elseif whole ~= 0 then | ||
ft = string.format("%d | ft = string.format("%d %d⁄%d", whole, num - whole * denom, denom) | ||
else | else | ||
ft = string.format(" | ft = string.format("%d⁄%d", num, denom) | ||
end | end | ||
return frame:preprocess(ft) | return frame:preprocess(ft) | ||