Module:User:Plagiat/sandbox

This is the current revision of this page, as edited by imported>Paine Ellsworth at 14:49, 29 December 2018 (unblank to fix malformed move request). The present address (URL) is a permanent link to this version.

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
local p = {}

function p.percent(frame) -- percentage (eventually)
	-- Percentage = share/total * 100
	local num1 = tonumber(frame.args[1])
	local num2 = tonumber(frame.args[2])
	return num1 / num2 * 100 .. '%'
end

return p