I need help in converting binary to decimal. :sad:
The Girl
0
Newbie Poster
Recommended Answers
Jump to PostWelcome to the forums,
I have written a program called "Conversion" a while back. It does exactly what you are looking for and more:
- Decimal to Hex
- Hex to Decimal
- Hex String to Decimal
- Decimal to Binary
- Binary to Decimal
- Float to Binary
- Ascii to Binary
- Binary to Ascii
…
Jump to PostPublic Function B2D(BinVal As String) As String Dim iVal#, temp#, i%, Length% Length = Len(BinVal) For i = 0 To Length - 1 temp = CInt(Mid(BinVal, Length - i, 1)) iVal = iVal + (temp * (2 ^ i)) Next i B2D = iVal End Function
All 9 Replies
Stack Overflow
8
Junior Poster
akila
0
Newbie Poster
Comatose
290
Taboo Programmer
Team Colleague
pthulasiram
0
Newbie Poster
pthulasiram
0
Newbie Poster
ariana
0
Newbie Poster
vinay_lnt
0
Newbie Poster
CaitieDavis
0
Newbie Poster
alice_C
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.