Java String to Double convertStringToDouble(String num)

Here you can find the source of convertStringToDouble(String num)

Description

convert String To Double

License

Open Source License

Declaration

public static double convertStringToDouble(String num) 

Method Source Code

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

public class Main {
    public static double convertStringToDouble(String num) {
        double val = 0;
        if (num != null) {
            val = Double.parseDouble(num);
        }//  w w w  .j ava  2  s.  co m
        return val;
    }
}

Related

  1. asDouble(String value)
  2. atof(String pString_)
  3. atof(String s)
  4. atof(String s)
  5. atof(String s)
  6. convertStringToDouble(String number)
  7. convertStringToDouble(String s)
  8. convertStringToDouble(String valueString)