title: Display a number with culture info but without formatting
body: <p>I thought this was simple; the .Net Framework has so many functions for formatting a number exactly as you want, but still, I haven't been able to make this work.</p>
  
  <p>The problem: display a number according to the European rules, so with "." for a thousands separator and "," for a decimal separator, but without also fixing the number of decimals.</p>
  
  <p>So, for example, if I have 1234, that is supposed to print as <code>"1.234"</code>, and 1234.5 is supposed to print as <code>"1.234,5"</code>. But none of the formats I've tried do exactly that!</p>
  
  <p>Examples: suppose that <code>ci</code> is a CultureInfo with the correct settings, then </p>
  
  <p><code>num.ToString(ci)      -&gt; "1234,5"   </code> decimals OK, but no thousands separator<br>
  <code>num.ToString("G", ci) -&gt; "1234,5"   </code> same as above<br>
  <code>num.ToString("N", ci) -&gt; "1.234,50" </code> thousands separator OK, but too many decimals  </p>
  
  <p>and so on. Similar with using a <code>NumberFormatInfo</code> instead of a <code>CultureInfo</code>, or trying <code>String.Format</code> or <code>Convert.ToString</code>. Anybody have any other ideas?</p>