Revision Difference
string.Comma#515913
<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>
<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>⤶
{{Example⤶
| Description = Demonstrates the use of string.Comma⤶
| Output = 123,456,789⤶
| Code = MsgN(string.Comma(123456789))⤶
}}