title: String formatting in scala - maximum decimal precision
body: <p><code>"%.3f".format(1)</code> returns <code>1.000</code>.<br>
  <code>"%.3f".format(4.0/3.0)</code> returns <code>1.333</code>.</p>
  
  <p>Is there some easy way to have these return <code>1</code> and <code>1.333</code>? I thought the standard <code>printf</code> format specified that precision as the maximum already, but apparently not in Scala.</p>