Module:Math
From VistApedia
--[[
This module provides a number of basic mathematical operations.
]]
local yesno, getArgs -- lazily initialized
local p = {} -- Holds functions to be returned from #invoke, and functions to make available to other Lua modules. local wrap = {} -- Holds wrapper functions that process arguments from #invoke. These act as intemediary between functions meant for #invoke and functions meant for Lua.
--[[ Helper functions used to avoid redundant code. ]]
local function err(msg) -- Generates wikitext error messages. return mw.ustring.format('Formatting error: %s', msg) end