两int类型相除 求百分比int a=4;int b=5;double c=a/b; //c=0; /是取商double c=a%b; //c=4; %是去余数我要的是c=0.8;该怎么弄出来。 [解决办法]double a=4.0;int b=5;double c=a/b; //0.8