title: Format in Kotlin string templates
body: <p>Kotlin has an excellent feature called string templates.</p>
  <pre><code>val i = 10 
  val s = &quot;i = $i&quot; // evaluates to &quot;i = 10&quot;
  </code></pre>
  <p>But is it possible to have any formatting in the templates? For example, I would like to format Double in string templates in kotlin, at least to set a number of digits after a decimal separator:</p>
  <pre><code>val pi = 3.14159265358979323
  val s = &quot;pi = $pi??&quot; // How to make it &quot;pi = 3.14&quot;?
  </code></pre>