public static String removeZero(double number) { DecimalFormat format = new DecimalFormat("#.###########"); return format.format(number); }