|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IConverter
Interface description which must be implement for a language to convert numbers to related text representation.
| Method Summary | |
|---|---|
java.lang.String |
convert(long _number)
Converts the _number into the related text representation. |
boolean |
isDecimal()
Returns true in the case the converter from numbers to words uses the decimal system. |
boolean |
usesShortScale()
Returns true in the case the converter for a language uses the short scale for the decimal system. |
| Method Detail |
|---|
java.lang.String convert(long _number)
_number into the related text representation.
_number - number to convert
boolean isDecimal()
boolean usesShortScale()
Returns true in the case the converter for a language uses the short scale for the decimal system.
If the language uses the decimal system (isDecimal()), two
different numerical systems "large scale" and "short
scale" exists. Sometimes used numerical system may also changed in
the history for one language. E.g. in the United Kindom before the
second world war they used the large scale system. In 1974 the UK
government changed to short scale for their statistics. Another example
is the French language. They changed after the second world war from
short scale to long scale.
In 1948 the 9th General Conference on Weights and Measures proposed the universal use of the long scale. So here this means that the usage of short scale is an specialty, but could be checked with this method.
The different between this two numerical systems is, that a billion in short scale is not the same that in the long scale. The following table gives an overview:
| Value | Short Scale | Long Scale |
|---|---|---|
| 100 | one | one |
| 103 | thousand | thousand |
| 106 | million | million |
| 109 | billion | thousand million (sometimes milliard) |
| 1012 | trillion | billion |
| 1015 | quadrillion | thousand billion (sometimes billiard) |
| 1018 | quintillion | trillion |
For a deeper explanation see e.g. the description of the short and long scale in the Wikipedia.
isDecimal()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||