I want a ceiling function in classic .asp. I have written the function. Unfortunately when I call the function nothing happens. I am quite frustrated because I feel that I am overlooking something obvious.
Here is the call...
e = ceiling(99.2323)
response.write "this should print 100..." & e
Here is the function
Function ceiling(inputValue)
outputValue = 0
if int(inputValue) = inputValue then
outputValue=inputValue
else
outputValue= int(inputValue) + 1
end if
end Function
Currently, e does not print
Here is the call...
e = ceiling(99.2323)
response.write "this should print 100..." & e
Here is the function
Function ceiling(inputValue)
outputValue = 0
if int(inputValue) = inputValue then
outputValue=inputValue
else
outputValue= int(inputValue) + 1
end if
end Function
Currently, e does not print