title: String.Format - How can I format to x digits (regardless of decimal place)?
body: <p>I need to format a floating point number to x characters (6 in my case including the decimal point). My output also needs to include the sign of the number</p>
  
  <p>So given the inputs, here are the expected outputs</p>
  
  <pre class="lang-none prettyprint-override"><code>1.23456   =&gt; +1.2345
  
  -12.34567 =&gt; -12.345
  
  -0.123456 =&gt; -0.1234
  
  1234.567  =&gt; +1234.5
  </code></pre>
  
  <p>Please assume there is always a decimal place before the last character. I.e. there will be no  <code>12345.6</code> number input - the input will always be less than or equal to <code>9999.9</code>.</p>
  
  <p>I'm thinking this has to be done conditionally.</p>