Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2003
    Posts
    126

    Wink Unanswered: Round number to nearest even number

    Anyone know of a way to round up a number to the nearest even number?

    example.. 71 rounded to 72

    Thanks,

    Ken

  2. #2
    Join Date
    Feb 2003
    Posts
    15

    Re: Round number to nearest even number

    Try to add 0,5 to the number, and then round it.

  3. #3
    Join Date
    Jan 2003
    Posts
    126
    This works!

    newstring = CInt(Len(Label1.Caption) + 0.5) / 2

    The sting is 71, this changes it to 72, which is what I wanted

Posting Permissions

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