math.groupDigits¶
math.groupDigits(value)
Arguments¶
Argument | Data Type | Optional | Default Value | Explanation |
---|---|---|---|---|
value | int | No | - | Makes it look like money |
Example¶
local value = 5555
local valueGrouped = math.groupDigits(value)
print(value, valueGrouped) -- Returns 5555, 5,555