阅读背景:

为什么两个整数的除法在Java中返回0 ?

来源:互联网 
int totalOptCount = 500;
int totalRespCount=1500; 
float percentage =(float)(totalOptCount/totalRespCount);
int totalOptCount = 500;
int totalRespCount=150



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: