소수점 자리 수 찍기

suee97·2022년 2월 28일
0

소수점 셋째 자리수까지 표현

cout << fixed;
cout.precision(3);
cout << num << "%" << endl;
profile
승언

0개의 댓글