convert integer to hexadecimal number
Published: 19. October 2011 | Updated: 26. October 2011License: Microsoft Public License (MS-PL)
Categories: Converting » Numbers
Tags: C# Conversion Formatting Math
int integer = 58; string hexadecimal = integer.ToString("X"); Console.WriteLine(hexadecimal);Console Output:
3A
| Send us feedback about this snippet » |





