title: IFormatProvider scientific conversion from double to string - number of digits
body: <p>I have a problem with the conversion from double to string.</p>
  
  <p>I want to convert:</p>
  
  <blockquote>
    <p>double value: 0.0772486324655191</p>
    
    <p>string value: 0.0772486324655191</p>
  </blockquote>
  
  <p>and if the length is bigger than 16 digits after the decimal point I want it like this:</p>
  
  <blockquote>
    <p>double value: 0.00063500244832493823</p>
    
    <p>string value: 6.3500244832493823e-004</p>
  </blockquote>
  
  <p>I have tried to convert it with IFormatProvider Pattern:</p>
  
  <blockquote>
    <p>0.0000000000000000e000</p>
  </blockquote>
  
  <p>But the result in the first case is </p>
  
  <blockquote>
    <p>7.7248632465519100e-002</p>
  </blockquote>
  
  <p>How can I get the number of digits in my double vector? Or better: how should I use the format provider correctly?</p>
  
  <pre><code>String specifier;
  CultureInfo culture;
  specifier = "0.0000000000000000e000";
  culture = CultureInfo.CreateSpecificCulture("en-US");
  Console.WriteLine(DoubleMirrored[0].ToString(specifier, CultureInfo.InvariantCulture));
  </code></pre>