Module:Shared: Difference between revisions

Remove deprecated functions
(Remove deprecated function)
(Remove deprecated functions)
Line 254: Line 254:
function p.startsWith(string1, start)
function p.startsWith(string1, start)
return string.sub(string1, 1, string.len(start)) == start
return string.sub(string1, 1, string.len(start)) == start
end
--Adds commas
function p.round(val, maxDigits, minDigits)
return numModule.round(val, maxDigits, minDigits)
end
--From http://lua-users.org/wiki/SimpleRound
function p.round2(num, numDecimalPlaces)
return numModule.round2(num, numDecimalPlaces)
end
end


2,875

edits