Deformatting the Currency back to BigDecimal

I have formatted the BigDecimal in this way.

NumberFormat moneyFormat = NumberFormat.getCurrencyInstance(Locale.US);
maxRefunds = moneyFormat.format(maxRefundsDecimal.doubleValue());

How do I deformat it?

thanks,
WtritepoAsked:
Who is Participating?
 
marklorenzCommented:
Read about it here:

Formatting Numbers in Java
http://www.iro.umontreal.ca/~vaucher/Java/tutorials/Formatting.html
0
 
Ajay-SinghCommented:
Use moneyFormat.parse(text)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.