Garry's Mod Wiki

STNDRD

  string STNDRD( number number )

Description

Returns the ordinal suffix of a given number.

Arguments

1 number number
The number to find the ordinal suffix of.

Returns

1 string
suffix

Example

Returns the ordinal suffix of 72.

print( 72 .. STNDRD(72) )
Output: 72nd