欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

asp 取一個數(shù)的整數(shù) 但不是四舍五入,只要有小數(shù),就取大于這個數(shù)的整數(shù)

 更新時間:2009年10月31日 21:02:26   作者:  
asp 取一個數(shù)的整數(shù) 但不是四舍五入,只要有小數(shù),就取大于這個數(shù)的整數(shù)
如:
0.625 取 1
2.1  取 3
3.6  取 4
<%
if fix(a)>a then
b=fix(a)
else
b=fix(a)+1
response.write b
end if
%>
或者:
<%
a=0.625
if a<>fix(a) then
a=fix(a)+1
else
a=fix(a)
end if
response.write a
%>
(注:這個測試成功?。?
-------------
如果用:
<%
a=0.625
if a<>cint(a) then
a=cint(a)+1
response.write a
end if
%>
(注:這個如果a=0.625,返回的就變成2,而不是變成1.)

相關文章

最新評論