mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
refact math.normalize
This commit is contained in:
parent
c4a40d6b80
commit
6018db9c28
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue