Module:User:Mr rnddude/Sandbox: Difference between revisions
Appearance
Content deleted Content added
Mr rnddude (talk | contribs) See if it works as a multiplication |
Mr rnddude (talk | contribs) Changes |
||
Line 9: | Line 9: | ||
local p = {} |
local p = {} |
||
function p. |
function p.percent (frame) |
||
-- Percentage = share/total * 100 |
-- Percentage = share/total * 100 |
||
local num1 = tonumber(frame.args[1]) |
local num1 = tonumber(frame.args[1]) |
Revision as of 14:07, 6 March 2018
-- This is my module sandbox.
-- Simple pre-module for a
-- requested template.
P = 1014 -- hPa
Incr = 27 -- feet
MSL = -27 -- feet
local p = {}
function p.percent (frame)
-- Percentage = share/total * 100
local num1 = tonumber(frame.args[1])
local num2 = tonumber(frame.args[2])
return num1 * num2
end