Jump to content

Module:User:Mr rnddude/Sandbox

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Mr rnddude (talk | contribs) at 14:11, 6 March 2018 (Arrgh, silly space). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
-- This is my module sandbox.
-- Simple pre-module for a
-- requested template.

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
end