Home double num = Math.Round(double.Parse(value), 4); this line is causing error
 This question already has an answer here: double.Parse throw a System.FormatException 3 answers I am having this kind of error: Input string was not in a correct format Looking from debug I can see that this is the line that is causing the error: double num = Math.Round(double.Parse(value), 4);  I have made some researches but my piece of code looks like is correct, so I am still not getting where I am doing wrong. Any idea?