mirror of
https://github.com/ershisan99/Fantoms-Preview.git
synced 2025-12-31 20:49:37 +00:00
fixed issue with ranges not showing
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user