Module:Number

-- -- Number manipulation methods -- -- Many methods are already available in the math library, so this will be failry small --

local p = {}

-- -- Rounds a number to a specified number of decimal places -- -- If dp is not specified, it defaults to zero -- based on [[http://dev.wikia.com/wiki/Module:HF -- function p._round( num, dp )   local mult = 10 ^ ( dp or 0 )    return math.floor( num * mult + 0.5 ) / mult end

function p.round( frame ) -- @todo implement for use as a template or through #invoke end