Java tutorial
//package com.java2s; public class Main { public static boolean decimal(Object o) { double n = 0; try { n = Double.parseDouble(o.toString().trim()); } catch (NumberFormatException e) { e.printStackTrace(); } if (n > 0.0) { return true; } else { return false; } } }