title: How can I convert Kilometers to Meters?
body: <p>I have some strings that define "Kilometers", such as :</p>
  
  <pre><code>sValore = "64.8";
  sValore = "64,8";
  sValore = "64";
  sValore = "64.82323523";
  </code></pre>
  
  <p>and I need a function that convert it to Meters. </p>
  
  <p>First problem is to convert it on "double". I tried with :</p>
  
  <pre><code>double valore = double.Parse(sValore.Replace(",", "."));
  </code></pre>
  
  <p>but in fact, the result of first (64.8) is, for example, 648 (must be 64.8). </p>
  
  <p>Than, doing <code>valore * 1000</code> I should resolve the problem, but what about the last case? The result must be 64823, not 64823.3523</p>
  
  <p>So, how can I resolve these troubles?</p>