PDA

View Full Version : Dividing numbers


Bluemonkey
04-11-2003, 10:36 PM
i know how to divide a number by 2 and get the answer thats easy but how can i divide a odd number by two and have the resault round up to the nearest hole number??

ie have 11 / 2 = 5.5 and have that number round up to 6 or some thing like that

thanks for the help

whammy
04-11-2003, 11:46 PM
<%
Dim mynum

mynum = 5.4

Response.Write(CInt(mynum))
%>

Change that to 5.5 and see what you get... ;)