Module:Infobox chord: Difference between revisions
No edit summary |
No edit summary |
||
Line 70: | Line 70: | ||
local gcd = utils._gcd(h, root) | local gcd = utils._gcd(h, root) | ||
local denom = root / gcd | local denom = root / gcd | ||
local numer = h / | local numer = h / gcd | ||
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/>" |