Java tutorial
//package com.java2s; import java.text.DecimalFormat; public class Main { public static String get6Double(String a) { double d = Double.parseDouble(a); DecimalFormat df = new DecimalFormat("0.000000"); return new String(df.format(d).toString()); } }