Jump to content

Module:User:Plagiat/sandbox: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Plagiat (talk | contribs)
m req: deletion
Tag: Blanking
m unblank to fix malformed move request
 
Line 1: Line 1:
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

Latest revision as of 13:49, 29 December 2018

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