Garry's Mod Wiki

string.CardinalToOrdinal

  string string.CardinalToOrdinal( number input )

Description

Converts a cardinal (111) number to its ordinal/sequential variation (111th).

See also STNDRD for a function that returns just the suffix.

Arguments

1 number input
A number to convert to ordinal.

Returns

1 string
The ordinal numeral.