Example:
Here is the hex value 00037FFED3837801.Want to change it to decimal value --985157377161217
which I usually do using the below link. http://www.binaryhexconverter.com/hex-to-decimal-converter .Need help in this context as they are almost 2k values to be converted.So trying for a program which can accept that file of 2k values ,convert them to decimal values and display.Could you please help me in this?
Thanks in advance!!
Susmitha PakaPosted Apr 10, 2016, 1:19 AM
ali tuncerPosted Apr 9, 2016, 2:34 AM
List
foreach (string hex in myList)
{
convertedValues.Add(Convert.ToInt64(hex, 16).ToString());
}
File.WriteAllLines(@"decimal.txt", convertedValues.ToArray());
Console.WriteLine("Done");
Console.ReadKey();
Susmitha PakaPosted Apr 9, 2016, 2:03 AM
ali tuncerPosted Apr 9, 2016, 12:53 AM
http://stackoverflow.com/questions/74148/how-to-convert-numbers-between-hexadecimal-and-decimal-in-c