Convert between different formats of numbers
May 18th, 2009
No comments
1. Convert string to hexadecimal number.
string testString = "C64842"; UInt32 resultHexUInt = UInt32.Parse(testString, System.Globalization.NumberStyles.HexNumber);
2. Convert Hexadecimal value to Decimal.
String decimalValue = hexadecimalValue.ToString("X");
Unique visitors to post: 0