3
I have a function that returns the number at home of a thousand, example:
function getMilharNumber(n) -- critico
return tostring(math.floor(n)):reverse():gsub("(%d%d%d)","%1,"):gsub(",(%-?)$","%1"):reverse()
end
print(getMilharNumber(1000000)) -- retorna 1,000,000
But returns 1,000,000 with commas, I want to know how to return with dots like this: 1,000,000.
Thank you.
worked out obg dude! you’re beast
– vodka