money « Number Format « Java Data Type Q&A





1. How do I convert from dot-separated money into comma-separated number    stackoverflow.com

I have the following possible input values that are expressed in an abbreviated way:

  • $39.44
  • $0.523
  • $1.336
Which I would like to convert into:
  • $39,440,000
  • $523,000
  • $1,336,000
I would prefer to use a generic approach rather than building strange ...