i have 2 or maybe more than 2 string variable like below
string a = csvalue[7].Replace(" ", ""); //a="120641"
string b = csvalue[9].Replace(" ", "") ;//b=""221707
decimal result = Convert.ToDecimal(a) + Convert.ToDecimal(b)
but it have exception:" threw an exception of type 'System.FormatException'"
i try
enter code here
string one = "120641";
string two = "221707";
string three = "123548";
Double iOne = 0;
Double iTwo = 0;
Double ithree = 0;
Double.TryParse(one, out iOne);
Double.TryParse(two, out iTwo);
Double.TryParse(three, out ithree);
and it dosent work for iOne,iTwo please help me
RLM-unicode-markers that break the formatting. you have to replace those as well, not just spaces.one.Length- it's 11 instead of the expected 6