title: Scala String interpolation with Format, how to change locale?
body: <p>When doing format string interpolation in Sweden I get a comma instead of a dot when creating strings with decimal numbers:</p>
  
  <pre><code>scala&gt; val a = 5.010
  a: Double = 5.01
  
  scala&gt; val a = 5.0101
  a: Double = 5.0101
  
  scala&gt; f"$a%.2f"
  res0: String = 5,01
  </code></pre>
  
  <p>My question is, how do I set the format so that I get the result <code>5.01</code>? I would like to be able to set the locale only for that String, i.e. so that I don't change the locale for the whole environment.</p>
  
  <p>Cheers,</p>
  
  <p>Johan</p>