Module:Infobox chord: Difference between revisions

Bcmills (talk | contribs)
No edit summary
Bcmills (talk | contribs)
No edit summary
Line 69: Line 69:


local gcd = utils._gcd(h, root)
local gcd = utils._gcd(h, root)
local numer = h / gcd
local denom = root / gcd
local denom = root / gcd
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/>"