Форматування

double c = 1.563345;

String result=new DecimalFormat("#0.00").format(c);

// printf() - форматування