local p = {}

local round = require('Module:Math')._round

function p.calc(frame)

-- ratio 16:9
-- input = width or height
-- input:out=16:9
-- out = 9*input/16

--[[
{{#invoke:가로세로비| (width) | (ratio) }}
틀:Round
]]

local width = frame.args[1]:gsub("px","")
local ratio_ = frame.args[2]
local hori = tonumber(ratio_:sub(1, ratio_:find(":") -1))
local verti = tonumber(ratio_:sub(ratio_:find(":") + 1, -1))
return round(width * verti / hori, 0)

end

return p