What is the code for converting from binary to decimal???????? :rolleyes:
Jump to Post
Have you tried this code:
Dim strBinary As String = "11111111" Dim intValue As Integer Dim iPos As Integer Dim iVal As Integer For iPos = 0 To strBinary.Length - 1 iVal = strBinary.Substring(strBinary.Length - iPos - 1, 1) intValue = intValue + iVal * 2 ^ …
All 3 Replies
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.