string-instrument
    Preparing search index...

    Function ordinalise

    • Converts a number into an ordinal string used to indiciate the position in an ordered sequence, for example 1st, 42nd, or 111th.

      Parameters

      • number: number

        the number to use as the ordinal prefix and used to determine what the ordinal suffix is.

      Returns string

      the number with the correct ordinal suffix appended to it.