ordinal

Stoner.tools.ordinal(value: int) str[source]

Format an integer into an ordinal string.

Parameters

value (int) – Number to be written as an ordinal string

Returns

(str) – Ordinal String such as ‘1st’,’2nd’ etc.