Subject: Rounding
Posted By: JasperGIS Post Date: 12/14/2005 11:15:47 AM
Hello. Is there a function which allows a person to bring a number to teh next odd number?  For example, if the number is 38, how would I make it be 39?

Reply By: marcostraf Reply Date: 12/14/2005 2:09:43 PM
function NextOdd(byval n as long) as long
NextOdd= iif((n and 1) = 0, n+1,n)
end function

Go to topic 37621

Return to index page 417
Return to index page 416
Return to index page 415
Return to index page 414
Return to index page 413
Return to index page 412
Return to index page 411
Return to index page 410
Return to index page 409
Return to index page 408