Editing Module:HeroDataArraysGive feedback
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
| Latest revision | Your text | ||
| 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 4 digits | -- Round to 4 digits | ||