将浮点数强制转换为整数 c语言float转换为int 怎样将浮点数转换成整数?有两种方法:1。通过强制类型转换float a=1.1f//定义一个浮点变量aint B=(int)a//这里用(int)方法强制转换float... 2021-03-18 1264次浏览