两个整数相除得float

int a,b;float float f;计算机   f = (float)a / (float)b;   不能用   f = (float)(a/b)   由于a和b都是整数,计算机没法将其带上小数点
相关文章
相关标签/搜索