mirror of
https://github.com/IgorTimofeev/MineOS.git
synced 2026-01-10 21:22:39 +01:00
Merge pull request #17 from Eugene8388608/patch-1
Update advancedLua.lua
This commit is contained in:
commit
acbc075ca2
@ -85,7 +85,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