Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...