DecimalFormat formatter = new DecimalFormat("###,###.00"); double numFrancs = 10000000.0; double numDollars = numFrancs/FRANCS_PER_DOLLAR; System.out.println(formatter.format(numFrancs) + "FF is equal to $" + formatter.format(numDollars) + ".");