--
-- luaUtils
-- V1.0.0.0
--
-- @author apuehri|LS-Modcompany
-- @date 12/02/2019
--
-- Copyright (C) apuehri|LS-Modcompany
-- V1.0.0.0 ..... first implementation

function math.sign(v)
	return (v >= 0 and 1) or -1
end

function math.round(v, bracket)
	bracket = bracket or 1;
	return math.floor(v/bracket + math.sign(v) * 0.5) * bracket;
end;