Package com.stimulsoft.report
Class Func.NumToWordHelper
java.lang.Object
com.stimulsoft.report.Func.NumToWordHelper
- Enclosing class:
Func
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BigDecimalMaximum parsable value for integer or double part -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringaddWords(String integerString, String decimalString, String mainCurrency, String centCurrency, String postCurrency) Concatenate the final Stringstatic voiddeterminateCurrencies(String culture, String currencyISO, long integerPart, long decimalPart, StiRefObject<String> mainCurrency, StiRefObject<String> centCurrency) Determinate the exact word used for the currencies
-
Field Details
-
MaxValue
Maximum parsable value for integer or double part
-
-
Constructor Details
-
NumToWordHelper
public NumToWordHelper()
-
-
Method Details
-
determinateCurrencies
public static void determinateCurrencies(String culture, String currencyISO, long integerPart, long decimalPart, StiRefObject<String> mainCurrency, StiRefObject<String> centCurrency) Determinate the exact word used for the currencies- Parameters:
culture- the culture from which to get the culturecurrencyISO- ISO currency codeintegerPart- integer Part of the numberdecimalPart- double Part of the numberString- return the exact word to use for the main currency
-
addWords
public static String addWords(String integerString, String decimalString, String mainCurrency, String centCurrency, String postCurrency) Concatenate the final String- Parameters:
integerString- integer partdecimalString- double partmainCurrency- final String for the main currencycentCurrency- final String for the cent currencypostCurrency- word used between intager an double part- Returns:
-