title: C# format float to string with separators and padding 0
body: <p>I need to format ints and floats to string.</p>
  
  <p>If it's float, I need <code>,</code> to be decimal separator. And <code>.</code> must be thousand separator.</p>
  
  <p>Also, I need to complete remaining decimals with <code>0</code>. Some examples:</p>
  
  <pre><code>float:
  45,3: 000.045,30
  125: 000.125,00
  83560.195: 083.560,19
  
  int:
  45: 000.045
  5789: 005.789
  </code></pre>
  
  <p>I managed to format thousands with <code>"{0:#,0}"</code> but I still can't find how to format decimals and how to properly pad keeping separators.</p>
  
  <p>This must be done regardless of configured culture :/</p>