refact math.normalize

This commit is contained in:
Xertis 2024-12-20 23:26:59 +03:00 committed by GitHub
parent c4a40d6b80
commit 6018db9c28
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -52,7 +52,7 @@ function math.rand(low, high)
end
function math.normalize(num, conf)
conf = conf or 10
conf = conf or 1
return (num / conf) % 1
end