C++ 四捨五入 ; using namespace std; ; double · 50.26548; ; printf · "%.4f", n); cout << endl; // 列印輸出小數點後4 位,會四捨五入 ; return 0;
確定! 回上一頁