Java Double Number Create toDouble(String value)

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

Description

to Double

License

Open Source License

Declaration

public static Double toDouble(String value) 

Method Source Code

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

public class Main {
    public static Double toDouble(String value) {
        if (null == value) {
            return null;
        }/*from w w  w.  j  a v  a 2  s  . c om*/
        value = value.trim();
        if ("null".equals(value)) {
            return null;
        }
        return Double.parseDouble(value);
    }

    public static Double toDouble(Object value) {
        return toDouble(String.valueOf(value));
    }
}

Related

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