Skip to content

$ordinal

$ordinal adds st nd rd th to a number such as 1st 2nd 3rd 4th.

Usage

$ordinal[number]

Parameters

FieldTypeDescriptionRequired
numbernumberNumber which will add st nd rd th to it.true

Example(s)

1
client.command({
2
name: "ordinal",
3
code: `
4
$ordinal[12] -> Returns 12th
5
$ordinal[50] -> Returns 50th
6
$ordinal[11] -> Returns 11th
7
$ordinal[88] -> Returns 88th
8
`
9
});