Module:HeroDataArrays: Difference between revisions

Jump to navigation Jump to search
No edit summary
No edit summary
Tag: Manual revert
Line 30: Line 30:


-- Helper function to round numeric values
-- Helper function to round numeric values
-- local function roundValue(value)
local function roundValue(value)
--     if type(value) == "number" then
     if type(value) == "number" then
--         return util_module.round_to_sig_fig(value, 3)
         return util_module.round_to_sig_fig(value, 3)
--     end
     end
--     return value
     return value
-- end
end


-- Round to an integer (up to 2 digits)
-- Round to an integer (up to 2 digits)