by SYED ZUBAIR ALI (7 Submissions)
Category: Math/Dates
Compatability: Visual Basic 5.0
Difficulty: Unknown Difficulty
Originally Published: Fri 28th August 2009
Date Added: Mon 8th February 2021
Rating: (1 Votes)
Very Easy and Cool way to convert decimal figures into binary figures. U can make ur own conversion just to do a bit more work..enjoy!!! email
Dim loopcounter As Integer
If myNum >= 2 ^ 31 Then
Dec2Bin = "Number too big"
Exit Function
End If
Do
If (myNum And 2 ^ loopcounter) = 2 ^ loopcounter Then
Dec2Bin = "1" & Dec2Bin
Else
Dec2Bin = "0" & Dec2Bin
End If
loopcounter = loopcounter + 1
Loop Until 2 ^ loopcounter > myNum
End Function
Private Sub Command1_Click()
Label1.Caption = Dec2Bin(Val(Text1.Text))
End Su
No comments have been posted about Very Easy and Cool way to convert decimal figures into binary figures. U can make ur own conversion. Why not be the first to post a comment about Very Easy and Cool way to convert decimal figures into binary figures. U can make ur own conversion.