Conversion

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

does anyone know how to convert from Int16 or short to Hexadecimal and vise
versa?
 
Oh, I forgot to mention. To convert a hex string to Int16:

Int16.Parse("20", System.Globalization.NumberStyles.HexNumber);

That returns 32. Note that it fails if the string prefixed with "0x".
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top