VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Advanced Base Converter

Jon Feucht  (13 Submissions)   Math/Dates   Visual Basic 3.0   Advanced   Wed 3rd February 2021

Updated code! This function converts numbers into any base, and any base into decimal! Works frek-in' awesome!

Assumes
Not all bases will work; there are not enough characters to be able to do every base. An error will occur when this happens.

Returns
' The two functions given are reversible. For example: ConvertToBase(45, 16) = "2D" ConvertFromBase("2D", 16) = 45

Side Effects
Will not (yet) deal with negative numbers, and rounds all numbers that are decimal.

Rate Advanced Base Converter (6(6 Vote))
Advanced Base Converter.bas

Advanced Base Converter Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters