fix: fix numberToString

This commit is contained in:
Kazhnuz 2021-04-03 18:01:15 +02:00
parent 8c871d3444
commit d64868d54c

View file

@ -112,8 +112,7 @@ function Math.numberToString(x, length)
local length = length or 1
local string = ""
local x = x
if (x >= math.pow(10, length)) then
x = length*10 - 1
if (x < math.pow(10, length)) then
string = string .. x
else
for i=1, (length-1) do