title: Format negative integer/double using sprintf
body: <p>is it possible using only sprintf (c++) to format a negative integer/double in a way that there is a space between the sign and the value?</p>
  
  <pre><code>from this: -1234
  
  to this: - 1234
  </code></pre>
  
  <p>Edit: It will go in a char array.</p>