Merge pull request #17 from Eugene8388608/patch-1

Update advancedLua.lua
This commit is contained in:
Igor Timofeev
2017-03-29 18:07:54 +03:00
committed by GitHub

View File

@@ -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)