본문 바로가기

C++문법

소수점 아래 출력할 때

#include <iomanip>

cout << fixed << setprecision(15) << res << endl; //res를 소수점 아래 15자리까지 출력