Converting between bases?

gqstud79

Newcomer
Joined
Sep 28, 2002
Messages
11
Is there a class available that will convert from decimal to hex and also from hex back to decimal? I have tried using the following line of code, but it will only convert from decimal to hex, but not from hex to dec:

Convert.ToString(num, toBase);

I understand why that won't work, but I was just wondering if there is a class that will work. Thanks in advance for your help.
 
Back
Top