title: C# String.Format to One Decimal Place
body: <p>I'm trying to format a toString to one decimal place but it keeps going to something like 21.0445445454. Here's the line of code please let me know what I'm doing wrong</p>
  
  <pre><code> double heightInchToFoot = (12 * Convert.ToDouble(heightFtBox.Text)) +Convert.ToDouble(heightInchBox.Text);
          double bmi = (Convert.ToDouble(weightBox.Text) * 703) / (heightInchToFoot * heightInchToFoot);
          bmiDisplay.Text = String.Format("{0:0.0}", bmi.ToString());//This is the line of code I'm referring to
  </code></pre>