Ordinal

Converts a simple integer ("2") to an ordinalized string ("2nd")

Installation

If available in Hex, the package can be installed by adding ordinal to your list of dependencies in mix.exs:

def deps do
  [
    {:ordinal, "~> 0.1.0"}
  ]
end

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/ordinal.