Home > DeveloperSection > Forums > Converting Hex to integer in C#
jayprakash sharma
jayprakash sharma

Total Post:117

Posted on    January-29-2013 4:19 AM

 C# C# 

 1 Reply(s)
 1523  View(s)
Rate this:

Hi Everyone!

I want to convert Hex value into Integer in C#. How it is possible? I'm try to convert Hex value into integer as below line of code but it generate error "Some String Builder Problems".

My line of code

int x =(Value.ToString("x"));

Please help me!

Thanks in advance


Total Post:604

Posted on    January-29-2013 8:58 AM

Hi Jayprakash Sharma!

You can convert Hex value into integer like this

int iValue = Convert.ToInt32("17da06f1", 16);

Don't want to miss updates? Please click the below button!

Follow MindStick