c語言 float 保留小數點後兩位數字

挺實用的小技巧。技巧 float sp = 36.51647; sp=( (float)( (int)( (sp+0.005)*100 ) ) )/100; float
相關文章
相關標籤/搜索