|
-
Jan 15th, 2000, 06:10 AM
#1
Thread Starter
Addicted Member
Turn Binary # To Decimal Number Like How 10110 = 22 how can i do that ?
-
Jan 15th, 2000, 08:11 AM
#2
Fanatic Member
See:
http://www.vb-world.net/tips/tip109.html
------------------
John Percival
Editor, VB-World.net
[email protected]
-
Jan 15th, 2000, 08:16 AM
#3
Fanatic Member
Try this:
Dim strbin As String
Dim lngnum As Long
Dim x As Integer
strbin = "1001"
For x = 1 To Len(strbin)
If Mid(strbin, x, 1) = "1" Then lngnum = lngnum + 2 ^ (Len(strbin) - x)
Next
------------------
John Percival
Editor, VB-World.net
[email protected]
-
Jul 13th, 2010, 10:37 AM
#4
New Member
Re: Turn Binary # To Decimal Number Like How 10110 = 22 how can i do that ?
I need any kind of program that can take a huge (1 MB) text file of a single, no-breaks binary number, and turn it into a decimal number.
Anything helps!
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
|