string.Comma

From Garry's Mod
Jump to: navigation, search
 string.Comma( )

Contents

Description

Inserts commas for every third digit.

Arguments

number InputNumber

The input number to commafy

Returns

string

Prettystring

Examples

Example

Demonstrates the use of string.Comma

MsgN(string.Comma(123456789))

Output:

123,456,789
Personal tools
Navigation