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多一个+0 强调返回值为数字型
End If
End Function
Response.write Ceil(1.01)
%>
GitHub: https://github.com/mazeyqian
Blog: https://blog.mazey.net/
Blog: https://blog.mazey.net/