sql_server中什么函数可以取余和取整

解决方案 »

  1.   

    floor
    --------------------------------------------------------------------
    据查证 hammer_shi(@农业专家@(*暂时是菜鸟*))为激进分子,该账号已删除.  
      

  2.   

    function Floor(const X: Extended): Integer;DescriptionCall Floor to obtain the highest integer less than or equal to X. For example:Floor(-2.8) = -3Floor(2.8) = 2Floor(-1.0) = -1Note: The absolute value of X must be less than MaxInt.相减得到余
      

  3.   

    floor:取小整数floor(123.45)=123,ceiling:取大整数ceiling(123.45)=124
      

  4.   

    取余 %         12%5  结果2
    取整 Floor     Floor(3.2) 结果 3