Garry's Mod Wiki

Revision Difference

string.CardinalToOrdinal#552409

<function name="CardinalToOrdinal" parent="string" type="libraryfunc">⤶ <description>⤶ Converts a cardinal (`111`) number to its [ordinal/sequential variation](https://en.wikipedia.org/wiki/Ordinal_numeral) (`111th`).⤶ ⤶ See also <page>Global.STNDRD</page> for a function that returns just the suffix.⤶ </description>⤶ <added>2023.10.13</added>⤶ <realm>Shared and Menu</realm>⤶ <args>⤶ <arg name="input" type="number">A number to convert to ordinal.</arg>⤶ </args>⤶ <rets>⤶ <ret name="" type="string">The ordinal numeral.</ret>⤶ </rets>⤶ </function>⤶