Format negative amount of USD with a minus sign, not brackets (Java)

前端 未结 7 1479
离开以前
离开以前 2020-12-03 09:49

How do I get NumberFormat.getCurrencyInstance() to print negative USD currency values with a minus sign?

相关标签:
7条回答
  • 2020-12-03 10:29

    Try:

    NumberFormat.getCurrencyInstance(Locale.CANADA);

    0 讨论(0)
提交回复
热议问题