diff --git a/sys/apis/util.lua b/sys/apis/util.lua index b77d444..7f87230 100644 --- a/sys/apis/util.lua +++ b/sys/apis/util.lua @@ -132,7 +132,7 @@ end -- http://lua-users.org/wiki/SimpleRound function Util.round(num, idp) local mult = 10^(idp or 0) - return util.signum(num) * math.floor(math.abs(num) * mult + 0.5) / mult + return Util.signum(num) * math.floor(math.abs(num) * mult + 0.5) / mult end function Util.randomFloat(max, min)