Garry's Mod Wiki

string.Comma

string string.Comma( number InputNumber )

Description

Inserts commas for every third digit.

Arguments

1 number InputNumber
The input number to commafy

Returns

1 string
Prettystring

Example

Demonstrates the use of string.Comma

MsgN(string.Comma(123456789))
Output: 123,456,789

Page Links


Special Pages


Wikis

?

Render Time: 29ms

Session 0
DB GetPage 5
Generate Html 8
SaveChanges 8
Render Body 0
Render Sidebar 6