Java Parse Double parseDouble(String d)

Here you can find the source of parseDouble(String d)

Description

parse Double

License

Apache License

Declaration

public static Double parseDouble(String d) throws ParseException 

Method Source Code

//package com.java2s;
//License from project: Apache License 

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

public class Main {
    public static Double parseDouble(String d) throws ParseException {
        DecimalFormat format = new DecimalFormat("#.##");
        return format.parse(d.toUpperCase().replace("+", "")).doubleValue();
    }// w  ww.  j a  v a  2  s  .com
}

Related

  1. parseDouble(Double data)
  2. parseDouble(Object input)
  3. parseDouble(String inStr)
  4. parseDouble(String s, Locale locale)
  5. parseDouble(String str)
  6. parseDouble(String str)