Garry's Mod Wiki

Revision Difference

Global.STNDRD#552352

<function name="STNDRD" parent="Global" type="libraryfunc"> <description>Returns the ordinal suffix of a given number.</description> <realm>Shared and Menu</realm> <file line="307-L314">lua/includes/util.lua</file> <file line="308-L315">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>