Package eu.bandm.tools.muli
Class Numerics
java.lang.Object
eu.bandm.tools.muli.Numerics
Utility class to get natural-language representation of numeric values.
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
positionIndex
(String lang, int pos, int all) Give the print version of an ordinal numeral for the given language.
-
Method Details
-
positionIndex
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 representedall
- 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.
-