Java Decimal Format getDoubleByNumeric(String valorTexto)

Here you can find the source of getDoubleByNumeric(String valorTexto)

Description

get Double By Numeric

License

Open Source License

Declaration

public static Double getDoubleByNumeric(String valorTexto) throws ParseException 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.text.DecimalFormat;
import java.text.NumberFormat;
import java.text.ParseException;

import java.util.Locale;

public class Main {
    public final static Locale localBrasil = new Locale("pt", "BR");

    public static Double getDoubleByNumeric(String valorTexto) throws ParseException {
        NumberFormat df = DecimalFormat.getInstance(localBrasil);
        return df.parse(valorTexto).doubleValue();
    }/*  w  ww .  java 2  s .com*/
}

Related

  1. getDecimalFormattedNoQuote(String englishFormat)
  2. getDecimalFormatter()
  3. getDecimalFormatter(int scale)
  4. getDigitNumber(double p)
  5. getDoubleAsString(double value)
  6. getDoubleDecimalNumber(double d)
  7. getDoubledigit(double f)
  8. getDoubleForDisplay(Double d)
  9. getDoubleFromTaxSet(String taxSetValue)