Ceiling and Floor Functions

<%
function floor(x)
dim temp
temp = Round(x)
if temp > x then
temp = temp - 1
end if
floor = temp
end function

function ceil(x)
dim temp
temp = Round(x)
if temp < x then
temp = temp + 1
end if
ceil = temp
end function
%>

0 Comments

You must be logged in to post a comment.