Critico
Sexy
- Joined
- Mar 25, 2010
- Messages
- 370
- Reaction score
- 176
This function return return huge numbers with points
exemple:
Code:
function getMilharNumber(n)
return tostring(math.floor(n)):reverse():gsub("(%d%d%d)","%1."):gsub(",(%-?)$","%1"):reverse()
end
exemple:
Code:
function getMilharNumber(n) -- critico/vodkart
return tostring(math.floor(n)):reverse():gsub("(%d%d%d)","%1."):gsub(",(%-?)$","%1"):reverse()
end
print(getMilharNumber(1000000)) -- return 1.000.000