Results 1 to 20 of 20

Thread: Ceiling in VB [RESOLVED]

Threaded View

  1. #1

    Thread Starter
    vbuggy krtxmrtz's Avatar
    Join Date
    May 2002
    Location
    In a probability cloud
    Posts
    5,573

    Ceiling in VB [RESOLVED]

    I'm just stuck with this, what's the VB function that yields the "ceiling" of a number, i.e. the smallest integer greater of equal than the number?
    For instance:

    2.1 => 3
    3 => 3
    3.7 => 4

    So it's complementary to the int function that produces the largest integer less or equal than the number.

    If it doesn't exist, what would be a way to emulate it?
    Last edited by krtxmrtz; Aug 2nd, 2004 at 03:00 PM.
    Lottery is a tax on people who are bad at maths
    If only mosquitoes sucked fat instead of blood...
    To do is to be (Descartes). To be is to do (Sartre). To be do be do (Sinatra)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width