convnum
    Preparing search index...

    Function toEnglishCardinal

    • Converts a number to its cardinal form in English (e.g., 1 -> "1st", 2 -> "2nd")

      Parameters

      • num: number

        The number to convert

      Returns string

      The cardinal form of the number

      Error if input is not a finite number

      Can handle negative numbers and zero