title: Converting double to string with N decimals, dot as decimal separator, and no thousand separator
body: <p>I need to convert a decimal to a string with N decimals (two or four) and NO thousand separator:</p>
  
  <p>'XXXXXXX (dot) DDDDD'</p>
  
  <p>The problem with <code>CultureInfo.InvariantCulture</code> is that is places ',' to separate thousands.</p>
  
  <p>UPDATE</p>
  
  <p>This should work for decimal and double types.</p>
  
  <hr/>
  
  <p>My previous question: <em><a href="https://stackoverflow.com/questions/3971130/need-to-convert-double-or-decimal-to-string">Need to convert double or decimal to string</a></em></p>