Documentation Center

  • Trial Software
  • Product Updates

iptnum2ordinal

Convert positive integer to ordinal string

Syntax

string = iptnum2ordinal(number)

Description

string = iptnum2ordinal(number) converts the positive integer number to the ordinal text string string.

Examples

The following example returns the string 'fourth'.

str = iptnum2ordinal(4)

The following example returns the string '23rd'.

str = iptnum2ordinal(23)
Was this topic helpful?