Package org.compiere.util
Class AmtInWords_IN
java.lang.Object
org.compiere.util.AmtInWords_IN
- All Implemented Interfaces:
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 -
Method Summary
Modifier and TypeMethodDescriptiongetAmtInWords
(String amount) Get Amount in Wordsstatic void
Teststatic String
sayNumber
(double number) Convenient method forsayNumber(StringBuffer, double)
.static String
sayNumber
(StringBuffer appendTo, double number) Say a number.
-
Constructor Details
-
AmtInWords_IN
public AmtInWords_IN()AmtInWords_IN
-
-
Method Details
-
sayNumber
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
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
Test- Parameters:
args
- ignored
-