refact math.normalize
This commit is contained in:
parent
c4a40d6b80
commit
6018db9c28
@ -52,7 +52,7 @@ function math.rand(low, high)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function math.normalize(num, conf)
|
function math.normalize(num, conf)
|
||||||
conf = conf or 10
|
conf = conf or 1
|
||||||
|
|
||||||
return (num / conf) % 1
|
return (num / conf) % 1
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user