title: C# float to decimal conversion
body: <p>Any smart way to convert a float like this:</p>
  
  <pre><code>float f = 711989.98f;
  </code></pre>
  
  <p>into a decimal (or double) without losing precision?</p>
  
  <p>I've tried:</p>
  
  <pre><code>decimal d = (decimal)f;
  decimal d1 = (decimal)(Math.Round(f,2));
  decimal d2 = Convert.ToDecimal(f);
  </code></pre>