Java Double Number Create toDouble(Object _inStrObj)

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

Description

to Double

License

Open Source License

Declaration

public static double toDouble(Object _inStrObj) 

Method Source Code

//package com.java2s;

public class Main {

    public static double toDouble(Object _inStrObj) {
        if (_inStrObj == null || _inStrObj.toString().trim().equals("")) {
            return 0;
        } else {//from  ww w  .  ja v a 2s .c  o  m
            return Double.valueOf(_inStrObj.toString()).doubleValue();
        }
    }
}

Related

  1. toDouble(int[][] arr)
  2. toDouble(Number n)
  3. toDouble(Number number)
  4. toDouble(Number value)
  5. toDouble(Number value)
  6. toDouble(Object _value, double _default)
  7. toDouble(Object argSource)
  8. toDouble(Object literal)
  9. toDouble(Object number)