|
-
Oct 12th, 2000, 12:34 PM
#1
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
-
Oct 12th, 2000, 01:07 PM
#2
Lively Member
Easy...
Just simple Math
Num = Num * 10000
I think it's 10000
Maybe 1000
-Justin
-
Oct 12th, 2000, 01:12 PM
#3
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?
-
Oct 12th, 2000, 01:15 PM
#4
Fanatic Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|