Android examples for java.lang:Double
Convert Object to double
public static boolean decimal(Object o) { double n = 0; try {/*from ww w . j av a 2 s . c o m*/ n = Double.parseDouble(o.toString().trim()); } catch (NumberFormatException e) { e.printStackTrace(); } if (n > 0.0) { return true; } else { return false; } }