Garry's Mod Wiki

Revision Difference

string.Comma#546269

<function name="Comma" parent="string" type="libraryfunc"> <description>Inserts commas for every third digit.</description> <realm>Shared and Menu</realm> <file line="347">lua/includes/extensions/string.lua</file> <file line="335">lua/includes/extensions/string.lua</file> <args> <arg name="InputNumber" type="number">The input number to commafy</arg> </args> <rets> <ret name="" type="string">Prettystring</ret> </rets> </function> <example> <description>Demonstrates the use of string.Comma</description> <output>123,456,789</output> <code>MsgN(string.Comma(123456789))</code> </example>