DecimalFormat problem

Gerhard Paulus gpaulus at stud.uni-frankfurt.de
Wed Dec 30 02:59:03 PST 1998


DecimalFormat is broken :  no formatting at all and decimals cut off.


DecimalFormat decimal = new DecimalFormat("#,###,##0.00", 
		 new DecimalFormatSymbols(Locale.US)) ;

float f = (float) 50000.11 ;
System.out.println("temp.decimal.format(f):  "+decimal.format(f)) ;

// Kaffe will produce "50000"




More information about the kaffe mailing list