does anyone have a function to convert decimal to binary?
Printable View
does anyone have a function to convert decimal to binary?
The .NET Framework does:You can also specify 8 or 16 to convert to octal or hexadecimal. To convert a binary string to a number you would use:VB Code:
Dim myBinaryString As String = Convert.ToString(myNumber, 2)VB Code:
Dim myNumber As Integer = Convert.ToInt32(myBinaryString, 2)
thanksQuote:
Originally Posted by jmcilhinney