package j2;
import java.text.DecimalFormat;
public class class4 {
public static void main(String[] args) {
double a=15.3;
double b=3;
DecimalFormat df=new DecimalFormat("0.00");
String s=df.format(a/b);
double result=Double.valueOf(s);
System.out.println(s);
System.out.println(result);
}
}
result输出为什么不是5.10