rounding up

Results 1 to 3 of 3

Thread: rounding up

  1. #1
    lepr Guest

    Default rounding up

    What is the best way to force an interger to round up in any situation?

  2. #2
    John Harvey Guest

    Default RE: rounding up

    If it is an integer, there is no need to round...<BR>If you mean to force a real to round to the next highest integer, use something like<BR>Function Ceiling(number)<BR> temp = split(number, ".", 1)<BR> Ceiling = temp(0) + 1<BR>End Sub

  3. #3
    lepr Guest

    Default RE: rounding up

    Great, I&#039ll give that a go. Yeah I meant a real number rounding up to the next highest interger. Btw, I think you meant "End Function" rather than "End Sub". I don&#039t wanna come off as anal, but if some other newbie read that, I wouldn&#039t want the poor thing to get confused.<BR><BR>thanks

Posting Permissions

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