M mnmn Unregistered / Unconfirmed GUEST, unregistred user! 2002-07-11 #1 c++Builder 5.0中为什么没有四舍五入或者取整之类的函数?
X xingxingz Unregistered / Unconfirmed GUEST, unregistred user! 2002-07-11 #2 float __fastcall Int45(float fValue) { return Int(fValue*10 + 0.5); //保留一位小数的情况 }
X xingxingz Unregistered / Unconfirmed GUEST, unregistred user! 2002-07-11 #4 float __fastcall Int45(float fValue) { return int(fValue*10 + 0.5); //保留一位小数的情况 }