From eb8b8236744f9efde02d3d3838421ab735a31cb4 Mon Sep 17 00:00:00 2001 From: sorucoder <40341154+sorucoder@users.noreply.github.com> Date: Sun, 9 Dec 2018 14:52:52 -0500 Subject: [PATCH] Fixed util.signum --- sys/apis/util.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)