import java.text.DecimalFormat;
public class Test{
public static void main( String[] args ){
DecimalFormat df = new DecimalFormat( "#0.##### " );
float f1 = 5.55f;
float f2 = 5.0f;
System.out.println( df.format( f1 ) );
System.out.println( df.format( f2 ) );
}
}
public class Test{
public static void main( String[] args ){
DecimalFormat df = new DecimalFormat( "#0.##### " );
float f1 = 5.55f;
float f2 = 5.0f;
System.out.println( df.format( f1 ) );
System.out.println( df.format( f2 ) );
}
}