I have a function that returns the number in the thousands, eg:
function getMilharNumber(n) -- critico
return tostring(math.floor(n)):reverse():gsub("(%d%d%d)","%1,"):gsub(",(%-?)$","%1"):reverse()
end
print(getMilharNumber(1000000)) -- re...
asked by
04.06.2015 / 16:06