變更
模块:Math
,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