title: PHP sprintf format number similar to number_format
body: <p>How can I format floats by <code>sprintf</code> like I would do by <code>number_format()</code>? 
  I need </p>
  
  <ul>
  <li>no decimals</li>
  <li>a dot as thousand separator</li>
  </ul>
  
  <p>With <code>number_format()</code> I would do so</p>
  
  <pre><code>$number = number_format(1599, 0, ".", ",");
  </code></pre>
  
  <p>The result should be:</p>
  
  <pre><code>1599 =&gt; 1.500
  899.99 =&gt; 899
  70 =&gt; 70
  </code></pre>
  
  <p>Is this possible using <code>sprintf()</code>?</p>
  
  <p>Kind regards,
  Robert</p>