add ui:set_folding_flag

This commit is contained in:
Evgeny
2021-08-03 13:36:53 +03:00
parent 6e99535b9e
commit 8a74f34102
3 changed files with 12 additions and 0 deletions

View File

@@ -11,3 +11,10 @@ function get_args_kv()
return { keys, values }
end
function round(x, n)
local n = math.pow(10, n or 0)
local x = x * n
if x >= 0 then x = math.floor(x + 0.5) else x = math.ceil(x - 0.5) end
return x / n
end