Class Numerics

java.lang.Object
eu.bandm.tools.muli.Numerics

public class Numerics extends Object
Utility class to get natural-language representation of numeric values.
  • Method Details

    • positionIndex

      public static String positionIndex(String lang, int pos, int all)
      Give the print version of an ordinal numeral for the given language. Currently only "de" and "en" are supported.
      Parameters:
      lang - the language in which tne numeral is wanted.
      pos - the number which shall be represented
      all - the total number of positions from which the number makes a selection.
      Returns:
      a text for of this position index.
      Throws:
      ImplementationMissingException - iff the language is not supported.