title: Sprintf in Ruby
body: <p>Sort of a quick question. I'm writing:</p>
  
  <pre><code>puts "%.3f %.4f %.5f" % [3.998877, 3.998877, 3.998877]
  </code></pre>
  
  <p>and get the following output:</p>
  
  <pre><code>3.999 3.9989 3.99888
  </code></pre>
  
  <p><strong>sprintf</strong> simply rounds the numbers. How do I restrict that rounding?</p>