VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Binary to Decimal AND Decimal to binary converter

Karel v/d Veldt  (1 Submission)   Coding Standards   Visual Basic 3.0   Intermediate   Wed 3rd February 2021

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).

Returns
A binary string or a decimal number.

Side Effects
None.

Rate Binary to Decimal AND Decimal to binary converter (3(3 Vote))
Binary to Decimal AND Decimal to binary converter.bas

Binary to Decimal AND Decimal to binary converter Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters