四舍五入

int round(double x){
  return (x>0.0) ? x+0.5 : x-0.5;

}

posted @ 2022-01-14 00:53  zzq12138  阅读(46)  评论(0)    收藏  举报