round up to nearest whole number?

  • Thread starter Thread starter cj
  • Start date Start date
C

cj

Is there a function or method that would round a long number (always up)
to the next integer?
 
cj said:
Is there a function or method that would round a long number (always up)
to the next integer?

Look into:

Math.Floor() <-Down
Math.Ceiling() <- Up

Chris
 
That is what I was looking for. Couldn't remember what it used to be
and wasn't sure .net still supported it.
 
cj said:
Is there a function or method that would round a long number (always up)
to the next integer?

\\\
x = CLng(Math.Ceiling(y))
///
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top