code: public static String ordinal(Number value)
      {
          int v = value.intValue();
          int vc = v % 100;
  
          if (vc > 10 && vc < 14)
              return String.format(ORDINAL_FMT, v, context.get().ordinalSuffix(0));
  
          return String.format(ORDINAL_FMT, v, context.get().ordinalSuffix(v % 10));
      }
docs: Converts a number to its ordinal as a string.
  
  <p>
  
  E.g. 1 becomes '1st', 2 becomes '2nd', 3 becomes '3rd', etc.
  
  @param value
  The number to convert
  @return String representing the number as ordinal