http://icu-project.org/apiref/icu4j/com/ibm/icu/text/RuleBasedNumberFormat.html규칙 기반의 숫자 형식 - 인도 통화 위의 클래스를 사용
, ₹ 9,00,000 값
def format = new RuleBasedNumberFormat(new Locale("en", "in"), RuleBasedNumberFormat.SPELLOUT)
format.format(value)
, 그것은 nine hundred thousand
을 보여줍니다. 하지만 우리는 보여야 만합니다 nine lakhs.
어떻게하는가?
힌디어 rbnf 데이터가 있지만 Hindy라는 이름이 있습니다. 즉, 새로운 RuleBasedNumberFormat (새 로케일 ("hi"), RuleBasedNumberFormat.SPELLOUT)은 힌두어로는'9 lakhs '처럼 보입니다. 내가 할 수있는 한 Icu4j에는 영어로 표기된 lakh 추기경을 포함하는 rbnf 데이터를 사용할 준비가되어 있지 않다. –