parent
02dc4e0d2e
commit
4dc0cc2dd3
1 changed files with 1 additions and 1 deletions
|
@ -112,7 +112,7 @@ function Math.numberToString(x, length)
|
|||
local length = length or 1
|
||||
local string = ""
|
||||
local x = x
|
||||
if (x < math.pow(10, length)) then
|
||||
if (x >= math.pow(10, length)) then
|
||||
string = string .. x
|
||||
else
|
||||
for i=1, (length-1) do
|
||||
|
|
Loading…
Reference in a new issue