044. 실수 반올림하기 ( round )

jychan99·2021년 10월 13일
0
 #include <iostream>

using namespace std;



int main()

{

    //소수점을 반올림할때 사용하는 round()함수입니다.

    cout << "round(1.1) : " << round(1.1) << endl;

    cout << "round(-2.3) : " << round(-2.3) << endl;

    cout << "round(40.5) : " << round(40.5) << endl;

    cout << "round(-55.7) : " << round(-55.7) << endl;

    cout << "round(100.9) : " << round(100.9) << endl;



    return 0;

}
profile
내가 지금 두려워 하고 있는 일이 바로 내가 지금 해야 할 일이다. 🐍

0개의 댓글

관련 채용 정보