VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Binary to Decimal AND Decimal to binary converter

by Karel v/d Veldt (1 Submission)
Category: Coding Standards
Compatability: Visual Basic 3.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (3 Votes)

With this code you can convert binary strings (of any size) to their decimal equivalent and vice versa. The binary-to-decimal converting code can convert binary strings from the left to the right (eg 1000 = 1) and from the right to the left (0001 = 1, standard). So you can choose in what direction you want to convert. You can also convert decimal numbers back to binary strings but the highest possible number with that is 999999 (else it crashes).

Code Returns
A binary string or a decimal number.
Side Effects
None.

Rate Binary to Decimal AND Decimal to binary converter

Upload

Download this snippet    Add to My Saved Code

Binary to Decimal AND Decimal to binary converter Comments

No comments have been posted about Binary to Decimal AND Decimal to binary converter. Why not be the first to post a comment about Binary to Decimal AND Decimal to binary converter.

Post your comment

Subject:
Message:
0/1000 characters