Module:YenToUSD

local p = {}

local function getArgs(frame) local args = {} for key, value in pairs(frame:getParent.args) do       args[key] = value end for key, value in pairs(frame.args) do       args[key] = value end return args end

function p.main(frame) local args     = getArgs(frame) local yen      = args[1] or args.yen or '' return p.convert(yen) end

function p.convert(yen) local conversion = 0.0077 -- Change this value every once in a while local usd = yen * conversion return math.floor(usd*100)/100 end

return p