// ****************************************************************
// Main.java
//
//  test to show making a decimal be exactly two digits
//
// ****************************************************************

import java.text.DecimalFormat;

public class Main
{
    public static void main(String[] args)
    {  
	double it = 6.0000;
	double ta = it - 3;
	DecimalFormat df1 =  new DecimalFormat("####.00");  
	System.out.println("Here are some samples: " + df1.format(it) + ", " + df1.format(ta) + ", " + df1.format(1234.5));
     }
}
