当前位置: X题卡 > 所有题目 > 题目详情

设变量x为float型且已赋值,则以下语句中能将x中的数值保留到小数点后两位,并将第三位四舍五入的是

查看本题答案

你可能感兴趣的试题

x=x*100+0.5/100.0  x=(x*100+0.5)/100.0  x=(in(x*100+0.5)/100.0  x=(x/100+0.5)*100.0  
float *p=1024;  int *p=(floax;  float p=&x;  float *p=&x;  
x=(x*100+0.5)/100.0  x=(int)(x*.100+0.5)/100.0  x=x*100+0.5/100.0  x=(x/100+0.5)*100.0  
float *p=1024; int*p=(float)x;  float p=&x; float *p=&x;  
int *p=(float)x;  float *p=&x;  float p=&x;  float *p=1024;  
x=x*l00+0.5/100.0  x=(x*100+O.5)/100  x=(int)(x*100+0.5)/100.0  x=(x/100+0.5)*100.0  
x=x*100+0.5/100.0;  x= (x*100+0.5)/100.0;  x=(int) (x*100+0.5)/100.0;  x=(x/100+0.5) *100.0;  
float*p=&x;  int*p=(float)x;  float p=&x;  float*p=1024;  
x=x*100+0.5/100.0  x=(x*100+0.5)/100.0  x=(int)(x*100+0.5)/100.0  x=(x/100+0.5)*100.0  
x=x*100+0.5/100.0;  X=(x*100+0.5)/100.0;  x=(int)(x*100+0.5)/100.0  X=(x/100+0.5)*100.0;  
float*P=1024;  int*P=(float)X:  float p=&X;  float*p=&X;  
float*p=1024;  int*p=(float)x;  float p=&x;  float*p=&x;  
float*P=1024;  int*P=(float)x;  floatP=&X;  float*P=&X;  
X=X*100+0.5/100.0;  x=(x*100+0.5)/100.0;  x=(int)(x*100+0.5)/100.0;  x=(x/100+0.5)*100.0;  
float *p=1024;  int *p=(float)x;  float p=&x;  float *p=&x;  
float*p=1024;  int*p=(float)x;  float p=&x;  float*p=&x;  
b=(a/5)/8;  ++a  a=1.0,b=2.0,  a+=3;  
x=x*100+0.5/100.0;  x=(x*100+0.5)/100.0  x=(in(x*100+0.5)/100.0;  x=(x/100+0.5)/100.0;  

热门试题

更多