VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Converts any number system into any number system, up to base 36. Ex: Base 2(binary) to Base 11(Und

Anonymous  (267 Submissions)   Math/Dates   VB 6.0   Unknown Difficulty   Mon 6th February 2006   Mon 8th February 2021

Converts any number system into any number system, up to base 36. Ex: Base 2(binary) to Base 11(Undecimal), Base 10(decimal) to Base 13.

API Declarations


'Converts from number system into any number system.
' These functions can, for example, convert Base 2(binary) into base 13(tridecimal).
' It could also convert base 15 into base 3.
'
'Currently, the program IS case sensitive, so you could add abcdefg, etc, on to
' gcEQUIV_STRING to allow conversion to/from number systems higher than base 36.
' If you don't want it to be case sensitive, just add a few well-placed instances
' of UCASE() in the conversion functions.
'
'I couldn't find any code to do this, so I wrote my own.
'
'Feel free to use this. All I ask is that you give me credit.
'
'Enjoy!

'



'This string holds the characters we'll use for our number system conversions.
Global Const gcEQUIV_STRING = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"

Rate Converts any number system into any number system, up to base 36. Ex: Base 2(binary) to Base 11(Und (3(3 Vote))
Converts any number system into any number system, up to base 36. Ex: Base 2(binary) to Base 11(Und.bas

Converts any number system into any number system, up to base 36. Ex: Base 2(binary) to Base 11(Und Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters