错!!int 取 小于等于 括号中数字 的一个整数四舍五入用
int (x+.5) 之类语句,注意正负号

解决方案 »

  1.   

    Round Function
          DescriptionReturns a number rounded to a specified number of decimal places.SyntaxRound(expression [,numdecimalplaces])The Round function syntax has these parts:Part                Description 
    expression          Required. Numeric expression being rounded. 
    numdecimalplaces    Optional. Number indicating how many places to the right of the decimal are included in the rounding. If omitted, integers are returned by the Round function. 
      

  2.   

    错误,正确的结果是这样的 int(6.9)=6,int(-6.9)=-7