• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 264
  • Last Modified:

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,
0
Wtritepo
Asked:
Wtritepo
1 Solution
 
Ajay-SinghCommented:
Use moneyFormat.parse(text)
0
 
marklorenzCommented:
Read about it here:

Formatting Numbers in Java
http://www.iro.umontreal.ca/~vaucher/Java/tutorials/Formatting.html
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now