select cast(round(213.55,0) as int)

解决方案 »

  1.   

    cast(round(123.45,0) as int)
      

  2.   

    select cast(123.45 as int)
      

  3.   

    四舌五入:select cast(round(123.45,0) as int)
      

  4.   

    select ceiling(1234.566)  --四舌五入
      

  5.   

    1:  select convert(int,str(round(1234.566-0.5,0))) ---不四舍五入 //1234
    2:  select convert(int,str(round(1234.566,0))) ---四舍五入  //1235
    3:  select floor(1234.566)  ---不四舍五入    //1234
    4:  select ceiling(1234.566)  --- //1235
    5:  select convert(int,1234.566) //1234
    6:  select cast(1234.566 as int) //1234