Module:Infobox chord: Difference between revisions
No edit summary |
No edit summary |
||
Line 68: | Line 68: | ||
end | end | ||
local | local gcd = utils._gcd(h, root) | ||
local numer = h / denom | local denom = root / gcd | ||
local numer = h / denom | |||
table.insert(ratios, numer .. "⁄" .. denom) | table.insert(ratios, numer .. "⁄" .. denom) | ||
debug_data = debug_data .. "ratio:" .. numer .. "⁄" .. denom .. "<br/>" | debug_data = debug_data .. "ratio:" .. numer .. "⁄" .. denom .. "<br/>" |