Formatting ordinal numbers

Discussion in 'iOS Programming' started by tsornin, Nov 6, 2008.

  1. tsornin
    Expand Collapse
    macrumors newbie

    Joined:
    Jul 23, 2002
    #1
    Is there a function for formatting ordinal numbers (1st, 2nd, 3rd etc)?

    I've been dredging through the date formatter and number formatter docco to no avail....
     
  2. t0mat0
    Expand Collapse
    macrumors 603

    t0mat0

    Joined:
    Aug 29, 2006
    Location:
    Home
    #2
    google Ordinal suffix - the 11th, 12th and 13th are special cases if you're being accurate too, else ends in 1 is 1st, ends in 2 is nd ends in 3 ir rd, others are th.
     

Share This Page