Minor cosmetic fixes

This commit is contained in:
Luca Deri 2016-05-07 00:20:55 +02:00
parent 5aa06597b3
commit 4acb2b0e81
3 changed files with 5 additions and 6 deletions

View file

@ -448,9 +448,8 @@ end
-- print(_key .. "=" .. _value .. "\n")
--end
function round(num, idp)
return tonumber(string.format("%." .. (idp or 0) .. "f", num))
end
function round(num, idp) 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 returnong a number
-- would not help as a new float would be returned