We need you!

We're working hard on the next version of Developer Fusion. Let us know what you think we should be up to!

Members

Technology Zones

Articles

Hosted By

MaximumASP

Info

Rated
Read 15,052 times

Contents

Related Categories

Number Systems - Any To Any

Nimpo

Any To Any

    The previous code gives rise to a very simple Function.  This Function's purpose is to accept a number of any base and return its representation in any other base.
Public Function AnyToAny(ByVal Number As String, ByVal InputBase As_
 Short,ByVal OutputBase As Short) As String
Dim lDecimal As Long = AnyToDecimal(Number, InputBase)
Return DecimalToAny(lDecimal, OutputBase)
End Function

Languages I know (from most comfortable with, to least comfortable with): VB.NET, C#, VB6, and C/C++

I'm 18 years old and pursuing a BS in Computer Science at the Colorado School of Mines. My dad introduced me to programming (with Visual Basic 6) when I was about 10. When I was 13 I was accepted and enrolled at Arapahoe Community College for a programming class and continued there during the summers while in high school.


Check me out!

Comments

  • Re: [5046] Number Systems

    Posted by Nimpo on 11 Sep 2007

    I have just returned from an extended absence from this forum so I realize this is rather late.

    It looks good, the only thing I can spot is the line where you catch the Exception.  Not fin...

  • Re: [5046] Number Systems

    Posted by pmccombs on 24 May 2007

    Thanks for the Roman Numeral example! I made some equivalent functions in C# using Enum's static methods. This results in more concise versions of the two primary methods described in the article. The...