mirror of
https://github.com/kepler155c/opus
synced 2025-10-14 23:37:40 +00:00
Fixed util.signum
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user