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: 39ms

DB GetPage 5
Generate Html 2
SaveChanges (1) 10
Render Body 0
Render Sidebar 19