Results 1 to 3 of 3

Thread: [RESOLVED] To Round down

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2009
    Location
    Lost in thought
    Posts
    349

    Resolved [RESOLVED] To Round down

    Hey everyone.

    I need to round 32.779 down to 32, I think, No!, [I know!] there is a better way than Split.

    Code:
    Dim num!
     num = 32.779
    Me.Caption = CInt(num)  'returns 33
    Me.Caption = Round(num)  'returns 33
    Me.Caption = Format(num, "###")  'returns 33
    Me.Caption = Split(num & ".", ".")(0) 'returns 32
    Just kane think of it.

    It's been a big day.

  2. #2

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2009
    Location
    Lost in thought
    Posts
    349

    Re: To Round down

    Quote Originally Posted by FireXtol View Post
    Int() or Fix()
    That's it, LOL !! yeah thanks

    Thanks for your help!

    5ms

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