VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Converts decimal numbers to binary

by ACMOA (7 Submissions)
Category: Math/Dates
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Wed 15th October 2003
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Converts decimal numbers to binary

API Declarations


Dim count As Integer
Dim BIN As String

Rate Converts decimal numbers to binary



For count = 7 To 0 Step -1
 If conv And (2 ^ count) Then
  BIN = BIN + "1"
 Else
  BIN = BIN + "0"
 End If
Next
txtBinary.Text = BIN

Download this snippet    Add to My Saved Code

Converts decimal numbers to binary Comments

No comments have been posted about Converts decimal numbers to binary. Why not be the first to post a comment about Converts decimal numbers to binary.

Post your comment

Subject:
Message:
0/1000 characters