Two identical strings: Difference between revisions
Content added Content deleted
No edit summary |
|||
Line 2,168: | Line 2,168: | ||
Function DecToBin$(decNum) |
Function DecToBin$(decNum) |
||
While decNum |
|||
R = (decNum Mod 2) |
|||
⚫ | |||
End If |
|||
decNum = Int(decNum/ 2) |
|||
⚫ | |||
decNum = Abs(decNum) |
|||
⚫ | |||
Do |
|||
If (decNum And 2^i) Then |
|||
⚫ | |||
Else |
|||
DecToBin$ = "0" + DecToBin$ |
|||
End If |
|||
i = i + 1 |
|||
Loop Until (2^i > decNum) |
|||
⚫ | |||
⚫ | |||
End If |
|||
End Function</lang> |
End Function</lang> |
||