大家来帮一下新人啊
class Lian1{
public static void main(String[] args)
{
float a=3;
float b=3.1f;
float c=a+b;
float d=a-b;
float e=a*b;
float f=a/b;
System.out.println("a="+a);
System.out.println("b="+b);
System.out.println("c="+c);
System.out.println("d="+d);
System.out.println("e="+e);
System.out.println("f="+f);
}
}
谁能说一下a*b为什么得9.299999而不是9.3?