Module:HeroData: Difference between revisionsGive feedback
Jump to navigation
Jump to search
m bugfix for get_list_elem |
m fixed sig_figs not rounding anymore |
||
| Line 42: | Line 42: | ||
--round | --round | ||
if ( | if (sig_figs_or_localize ~= nil) then | ||
var_value = util_module.round_to_sig_fig(var_value, | var_value = util_module.round_to_sig_fig(var_value, sig_figs_or_localize) | ||
if (var_value == nil) then return "get_hero_var() error with rounding" end | if (var_value == nil) then return "get_hero_var() error with rounding" end | ||
end | end | ||