Java Double Number Create toDouble(String str)

Here you can find the source of toDouble(String str)

Description

to Double

License

Open Source License

Declaration

public static double toDouble(String str) 

Method Source Code

//package com.java2s;
// it under the terms of the GNU General Public License as published by

public class Main {
    public static double toDouble(String str) {
        return Double.parseDouble(str);
    }//w  w w.  j a va2  s . c  om

    public static double toDouble(String str, double val) {
        return str != null ? Double.parseDouble(str) : val;
    }
}

Related

  1. toDouble(String s)
  2. toDouble(String str)
  3. toDouble(String str)
  4. toDouble(String str)
  5. toDouble(String str)
  6. toDouble(String str)
  7. toDouble(String str, double defaultValue)
  8. toDouble(String string)
  9. ToDouble(String string)