Package org.compiere.util
Class AmtInWords_IN
- java.lang.Object
-
- org.compiere.util.AmtInWords_IN
-
- All Implemented Interfaces:
AmtInWords
public class AmtInWords_IN extends Object implements AmtInWords
Amount in Words for Bahasa Indonesia Bugs item #1569711: remove hard-coded "Rupiah" to support all currency Contributor: Armen Rizal (www.goodwill.co.id)- Version:
- $Id: AmtInWords_IN.java,v 1.3 2006/07/30 00:54:36 jjanke Exp $
- Author:
- Halim Englen
-
-
Constructor Summary
Constructors Constructor Description AmtInWords_IN()
AmtInWords_IN
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAmtInWords(String amount)
Get Amount in Wordsstatic void
main(String[] args)
Teststatic String
sayNumber(double number)
Convenient method forsayNumber(StringBuffer, double)
.static String
sayNumber(StringBuffer appendTo, double number)
Say a number.
-
-
-
Method Detail
-
sayNumber
public static String sayNumber(double number)
Convenient method forsayNumber(StringBuffer, double)
.- Parameters:
number
- number to say- Returns:
- said number
-
sayNumber
public static String sayNumber(StringBuffer appendTo, double number) throws IllegalArgumentException
Say a number. This method will append the result to the given string buffer.- Parameters:
appendTo
- the string buffernumber
- number to say- Returns:
- said number
- Throws:
IllegalArgumentException
- if the number equals toLong.MIN_VALUE
-
getAmtInWords
public String getAmtInWords(String amount) throws Exception
Get Amount in Words- Specified by:
getAmtInWords
in interfaceAmtInWords
- Parameters:
amount
- numeric amount (352.80)- Returns:
- amount in words (three*five*two 80/100)
- Throws:
Exception
-
main
public static void main(String[] args)
Test- Parameters:
args
- ignored
-
-