Java Decimal Format string2Double(String s)

Here you can find the source of string2Double(String s)

Description

string Double

License

Open Source License

Declaration

public static Double string2Double(String s) throws ParseException 

Method Source Code

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

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

public class Main {
    private static final DecimalFormat mDecFmt = new DecimalFormat("###,###,###,###.##");

    public static Double string2Double(String s) throws ParseException {
        return mDecFmt.parse(s).doubleValue();
    }//from   www .  j av  a2s .  c o  m
}

Related

  1. readThisDouble(final String value)
  2. renderDouble(double value, int precision)
  3. replaceCommaByPoint(String doubleString, Locale loc)
  4. sanitizeDouble(String value)
  5. singleDecimalDigit(double d)
  6. strParaDouble(String s, double valorPadrao)
  7. to3DP(double number)
  8. toDecimalFromSexagesimalDegrees( final double sexagesimal)
  9. toDecimals(double d, int nrDecs)