Results 1 to 4 of 4

Thread: Very easy Question

  1. #1
    Guest

    Talking

    if i got a number Number = 0.0005
    how can i know the location of the 5 in this number, ??
    I know it is easy, just forgot, anyone please

  2. #2
    Lively Member
    Join Date
    Jul 1999
    Posts
    77

    Smile Easy...

    Just simple Math
    Num = Num * 10000

    I think it's 10000
    Maybe 1000

    -Justin

  3. #3
    Guest

    Talking

    NO....
    i think there is a way to determine the length of the whole number "0.10005" = 6 or 7 ... and the location of 5 in this number = 2 or 3 ..... Any suggestion?

  4. #4
    Fanatic Member
    Join Date
    Aug 2000
    Posts
    736
    Maybe use the InStr Function.

    Code:
    Private Sub Command2_Click()
        MsgBox InStr(1, 0.0005, 5)
    End Sub

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