fixed issue with ranges not showing

This commit is contained in:
davidmolgard
2025-03-24 12:26:53 -06:00
parent 883464a074
commit bc324e939a
3 changed files with 6 additions and 29 deletions

View File

@@ -15,7 +15,7 @@ end
function DV.PRE.format_number(num)
if not num or type(num) ~= 'number' then return num or '' end
-- Start using e-notation earlier to reduce number length, if showing min and max for preview:
if G.SETTINGS.DV.show_min_max and num >= 1e7 then
if true and num >= 1e7 then
local x = string.format("%.4g",num)
local fac = math.floor(math.log(tonumber(x), 10))
return string.format("%.2f",x/(10^fac))..'e'..fac