1

I have an input that is in non-US ASCII range decimal values that I'm having issues converting to Hexadecimal value.

How would I convert a decimal value of for example 552 to its hexadecimal value of 228?

  • 1
    What type is this "non-US ASCII range decimal" variable? – CodeCaster Jul 24 '17 at 22:17
  • @CodeCaster Higher decimal values that belong to characters that are not the standard printing characters in US https://en.wikipedia.org/wiki/ASCII –  Jul 24 '17 at 22:20
  • I know what ASCII is, I don't know what it has to do with converting a number's base. – CodeCaster Jul 24 '17 at 22:21
  • I was getting results I wanted in lower ranges but not in higher ones –  Jul 24 '17 at 22:24
  • In that case you should [edit] your question to show your code, explain what problem you have with it and show what you have tried to fix it. Anyway, see duplicate. – CodeCaster Jul 24 '17 at 22:25
  • Thanks, much appreciated –  Jul 24 '17 at 22:30

1 Answers1

3

You're looking for Convert.ToString(552, 16).

Documentation

SLaks
  • 800,742
  • 167
  • 1,811
  • 1,896