Home double num = Math.Round(double.Parse(value), 4); this line is causing error
Reply: 0

double num = Math.Round(double.Parse(value), 4); this line is causing error

user769
1#
user769 Published in May 25, 2018, 6:55 pm

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?

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.310072 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO