Hi
I am using the below code
int.Parse("376") the result is coming as
int.Parse("376") = 0x00000178 int
and i tried Convert.Toint32("376") also then the result is same
please help me how to convert string to number?
Converting from string to int returning hexa format
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

VulpesRank #55 · 29.2K reputationPosted Oct 20, 2013, 12:02 PM EDT
Are you sure that you're not printing it using the "x8" format?
int i = int.Parse("376");
string hex = "0x" + i.ToString("x8");
Console.WriteLine(hex); // 0x00000178