title: How can I format a value as a percentage without the percent sign?
body: <pre><code>float f = 0.479f;
  Console.WriteLine(f.ToString("p1"));
  </code></pre>
  
  <p>The output: 47.9 %</p>
  
  <p>What should I pass to ToString() in order to remove the percentage sign for output like this:</p>
  
  <blockquote>
    <p>47.9</p>
  </blockquote>
  
  <p>EDIT.  I should have mentioned that I am passing the mask to a 3rd party component that does it's thing with it.  I can't perform any acrobatics with the numbers unfortunately.  It has to be the mask that does the trick.</p>