gqstud79 Posted January 28, 2003 Posted January 28, 2003 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. Quote
*Experts* Volte Posted January 28, 2003 *Experts* Posted January 28, 2003 Convert.ToInt32("FF", 16)Will return 255. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.