Decimal separator in NumberFormat

后端 未结 3 1784
萌比男神i
萌比男神i 2020-11-30 09:52

Given a locale java.text.NumberFormat:

NumberFormat numberFormat = NumberFormat.getInstance();

How can I get the character used as Decimal

3条回答
  •  情书的邮戳
    2020-11-30 10:00

    If your NumberFormat instance is a DecimalFormat, then you can use getDecimalFormatSymbols() to get to that information.

    In general, you can't get to that information.

    Why do you need it?

提交回复
热议问题