-
[C++] cout으로 출력할 때 출력되는 소수점 자리수 바꾸는 법Programming (Others)/Language·Library 2022. 6. 29. 21:30
// cout << fixed; // cout.precision으로 소수점만의 출력 자리수를 설정하고 싶다면 cout.precision(10); // fixed가 없는 경우 숫자 전체의 출력 자리수 // cout.unsetf(ios::fixed); // 위 fixed 설정을 해제하고 싶다면 cout << a / (double)b;
'Programming (Others) > Language·Library' 카테고리의 다른 글
[python] matplotlib 관련 정보 기록 (0) 2021.05.22 [python] virtualenv(venv) 이모저모 (0) 2021.02.28