c语言 float 保留小数点后两位数字

挺实用的小技巧。技巧 float sp = 36.51647; sp=( (float)( (int)( (sp+0.005)*100 ) ) )/100; float
相关文章
相关标签/搜索