Decimal Base Converter
Version Compatibility: Visual Basic 5
What makes this different from most base converters is that it can go far beyond base 2 to 16. This means you can play with it and see what 1000 looks like in base 29, for example (it looks like 15E). Even though it may not have much practical use, it demonstrates the process by which decimal values may be converted into other bases. The function can take a decimal integer up to 28 digits long as an argument ranging from 1 to 9999999999999999999999999999 which would return a base 2 bumber 94 digits long! Other bases would return less lengthly numbers, since they require numbers of lesser length to represent the same values.
One note about the letters used as digits: The letter "O" tends to resemble the digit "0" (zero). So, to avoid the possibility of confusing the two, the letter "O" is expressed as a lower case "o" which makes it easier to dis- tinguish from the digit zero when experimenting with radix values of 25 or greater.
Instructions: Click the link below to download the code. Select 'Save' from the IE popup dialog. Once downloaded, open the .zip file from your local drive using WinZip or a comparable program to view the contents.
Download base_conv.zip