P Pablo Salazar Dec 29, 2003 #1 Hi, I need Help How do it change an int value to hex value? THX. Pablo Salazar.
B Bill Styles Dec 29, 2003 #2 Pablo Salazar said: Hi, I need Help How do it change an int value to hex value? Click to expand... int i=42; string s=i.ToString("X");
Pablo Salazar said: Hi, I need Help How do it change an int value to hex value? Click to expand... int i=42; string s=i.ToString("X");
M Marco Martin Dec 29, 2003 #3 Hi Pablo, There are many ways to convert to Hex value. This should get you started; // Should be "7B" String str = 123.ToString("X"); or the int.Parse function // Should be 291 int num = int.Parse("123", System.Globalization.NumberStyles.HexNumber); Hope this helps Marco
Hi Pablo, There are many ways to convert to Hex value. This should get you started; // Should be "7B" String str = 123.ToString("X"); or the int.Parse function // Should be 291 int num = int.Parse("123", System.Globalization.NumberStyles.HexNumber); Hope this helps Marco