Deformatting the Currency back to BigDecimal

Posted on 2007-08-10
Last Modified: 2013-11-23
I have formatted the BigDecimal in this way.

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

How do I deformat it?

Question by:Wtritepo
    LVL 23

    Expert Comment

    Use moneyFormat.parse(text)
    LVL 12

    Accepted Solution

    Read about it here:

    Formatting Numbers in Java

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
    By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
    Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
    The viewer will learn how to implement Singleton Design Pattern in Java.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now