Fixed 95th percentile calculation

Added average value in leu of min value (in pro version)
This commit is contained in:
Luca Deri 2017-11-13 00:23:07 +01:00
parent c3feb47f54
commit 740a58f9d7
2 changed files with 45 additions and 6 deletions

View file

@ -717,7 +717,10 @@ end
-- print(_key .. "=" .. _value .. "\n")
--end
function round(num, idp) return tonumber(string.format("%." .. (idp or 0) .. "f", num)) end
function round(num, idp)
if(num == nil) then return(0) end
return tonumber(string.format("%." .. (idp or 0) .. "f", num))
end
--function round(num) return math.floor(num+.5) end
-- Note that the function below returns a string as returning a number