Garry's Mod Wiki

Revision Difference

Global.STNDRD#526816

<function name="STNDRD" parent="Global" type="libraryfunc"> <description>Returns the ordinal suffix of a given number.</description> <realm>Shared and Menu</realm> <file line="283-L290">lua/includes/util.lua</file> <file line="285-L293">lua/includes/util.lua</file> <args> <arg name="number" type="number">The number to find the ordinal suffix of.</arg> </args> <rets> <ret name="" type="string">suffix</ret> </rets> </function> <example> <description>Returns the ordinal suffix of 72.</description> <code>print( 72 .. STNDRD(72) )</code> <output>72nd</output> </example>