Open main menu

Changes

Module:Math

149 bytes added, 15:21, 10 May 2018
add log10 functionality from module merge
local rescale = math.pow(10, precision or 0);
return math.floor(value * rescale + 0.5) / rescale;
end
 
--[[
log10
 
returns the log (base 10) of a number
 
Usage:
{{#invoke:Math | log | x }}
]]
 
function wrap.log10(args)
return math.log10(args[1])
end
Anonymous user