mirror of
https://github.com/IgorTimofeev/MineOS.git
synced 2025-12-24 13:02:49 +01:00
Merge pull request #37 from Eugene8388608/patch-2
Update advancedLua.lua
This commit is contained in:
commit
b60cd7f4fa
@ -115,7 +115,7 @@ end
|
||||
|
||||
function math.roundToDecimalPlaces(num, decimalPlaces)
|
||||
local mult = 10 ^ (decimalPlaces or 0)
|
||||
return math.floor(num * mult + 0.5) / mult
|
||||
return math.round(num * mult) / mult
|
||||
end
|
||||
|
||||
function math.getDigitCount(num)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user