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?
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Oct 20, 2013, 4:02 PM
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