mirror of
https://github.com/IgorTimofeev/MineOS.git
synced 2026-03-29 04:02:47 +02:00
Merge pull request #17 from Eugene8388608/patch-1
Update advancedLua.lua
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user