Module:Shared: Difference between revisions

Remove Number module inclusion
(Remove deprecated function)
(Remove Number module inclusion)
Line 1: Line 1:
-- Module that contains all functions regarding numeric formatting and calculations.
-- TODO: Make modules that now call Shared call Number (for relevant functions)
local numModule = require('Module:Number')
--So there are a handful of functions that I'm using in a lot of places
--So there are a handful of functions that I'm using in a lot of places
--So rather than continue to copy across the same handful of functions to every single new module
--So rather than continue to copy across the same handful of functions to every single new module
Line 418: Line 414:
end
end
return true
return true
end
--Returns a number including the sign, even if positive
function p.numStrWithSign(number)
return numModule.numStrWithSign(number)
end
end


2,875

edits