2
Answers

Converting string to decimal

john kanyora

john kanyora

7y
182
1
Am having problem in my code when converting string to decimal..am getting the error "for (int i = 0; i Am using the below code: { x[i] = dt.Rows[i][0].ToString(); y[i] = string.Format("{0:c}",Convert.ToInt32(dt.Rows[i][1]); }
Answers (2)