VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Base Changing

Infra  (7 Submissions)   Encryption   Visual Basic 3.0   Intermediate   Wed 3rd February 2021

Lately, I've seen a couple binary convertion functions. I decided to "up" how powerful the converters are. I've created a base convertion that can convert 2 (2 is used to create binary) to 9. There is also a converter to convert everything back to normal. So, let's say you want to convert 150 to binary, and put it in the string Binary:
Binary$ = Base(2, 150, True)
And if you want to convert it back:
Binary$ = Dec(2, Binary$)
Simple as that. You can also convert to other bases, which could be useful in an encryption (if you really want to confuse crackers). There are also comments on virtually EVERY line. All in all, this is a must see!

Inputs
BaseNum needs to be an integer, from 2 to 9 (program will filter out any other numbers).

Rate Base Changing (18(18 Vote))
Base Changing.bas

Base Changing Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters