devLupin / algorithm

PS
1 stars 0 forks source link

소수점 N자리까지 출력 #42

Open devLupin opened 1 year ago

devLupin commented 1 year ago
cosnt int SIZE = 2;  // 소수점 아래 두자리
double ans = blabla;

cout << fixed;
cout.precision(SIZE);
cout << ans;