john kanyora

john kanyora

  • 1.6k
  • 242
  • 16.7k

Converting string to decimal

Dec 17 2017 1:15 PM
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)