title: Split and Convert string to double C#
body: <p>I want to convert string to double.</p>
  
  <p>Here's example of what I do : </p>
  
  <pre><code>string line = "4.1;4.0;4.0;3.8;4.0;4.3;4.2;4.0;"; 
  
  double[] values = line2.Split(';').Select(double.Parse).ToArray();
  </code></pre>
  
  <p>But an error appears </p>
  
  <blockquote>
    <p>Input string was not in a correct format.</p>
  </blockquote>
  
  <p>When I try </p>
  
  <pre><code>string line2 = "1;2;3;4;5;6;7;8;9;10;11;12";
  
  double[] values = line2.Split(';').Select(double.Parse).ToArray();
  </code></pre>
  
  <p>It works perfectly fine. </p>
  
  <p>What should be input format for double values to work ?</p>