I have a flat file with below list of amounts, could you please tell me , what is the meaning of charectors which are ending with {,A,H,E,C,I,F and how can I make this below list of amount into two point decimal value something like 1234567.80 ?
12345678{
00484326A
00000210H
00000185A
00000077E
00000833C
00000255I
00000077E
00000039F
00000088A
00000000F
00000000A
00000100{
I have tried in below way, and I’m able to place “.” between two substrings for all of them, for some reason I would like to try in some dynamic way to don’t see some issues in my application.
string decimalstring = "12345678{";
decimalstring = decimalstring.Replace("{", "0");
int String1 = Convert.ToInt32(decimalstring.Substring(0, decimalstring.Length - 2));
string String2 = decimalstring.Substring(decimalstring.Length - 2, 2);
string Result = String1 + "." + String2;
Thank You,