ska-dev ska-dev - 3 years ago 126
C# Question

Converting decimal to hexadecimal

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?

Answer Source

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

Documentation

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download