四舍五入+PI (π)

double x=1.1;
cout<<int(x+0.5)<<endl;    

 

double PI = atan(1.0) * 4;

 

posted @ 2018-12-18 20:08  莫莫君不恋爱  阅读(150)  评论(0编辑  收藏  举报