Java Double Number Create toDouble(Object obj)

Here you can find the source of toDouble(Object obj)

Description

to Double

License

BSD License

Declaration

public static double toDouble(Object obj) 

Method Source Code

//package com.java2s;
/*L//from   w  w w  .j  av  a2  s  . co m
 * Copyright Washington University in St. Louis, SemanticBits, Persistent Systems, Krishagni.
 *
 * Distributed under the OSI-approved BSD 3-Clause License.
 * See http://ncip.github.com/wustl-common-package/LICENSE.txt for details.
 */

public class Main {
    public static double toDouble(Object obj) {
        double value = 0;
        if (obj == null)
            return value;
        else {
            Double dblObj = (Double) obj;
            value = dblObj.doubleValue();
            return value;
        }
    }
}

Related

  1. toDouble(Object ob, Double defaultDouble)
  2. toDouble(Object obj)
  3. toDouble(Object obj)
  4. toDouble(Object obj)
  5. toDouble(Object obj)
  6. toDouble(Object obj)
  7. toDouble(Object obj)
  8. toDouble(Object obj)
  9. toDouble(Object obj)