ASP向上取整
<%
Function Ceil(value)
??? Dim return
??? return = int(value)
??? Cei2=value-return
??? if Cei2>0 then
??????? Ceil = return + 1
??? else
??????? Ceil=value+0'就是Ceil=value多一個(gè)+0 強(qiáng)調(diào)返回值為數(shù)字型
??? End If
End Function
Response.write Ceil(1.01)
%>
轉(zhuǎn)載于:https://www.cnblogs.com/mazey/p/6563714.html
總結(jié)
- 上一篇: 从机器学习谈起(机器学习简介)
- 下一篇: CF 375D. Tree and Qu