Hello, I was wondering how to turn an int, Ex. 14123456 into money format (adding commas) Ex. 14,123,456 Thanks for any help!
m = tostring(m)
for i = #m - 3, 1, -3 do
m = string.sub(m, 0, i) … “,” … string.sub(m, i + 1)
Quick and dirty.
Thank you, works like a charm :D!
But yes it’s kind of sexy.