title: Formatting number in European format with two decimals
body: <p>Trying to format a number to two decimals format in European culture. So that comma is decimal separator and space thousands separator.</p>
  
  <p>In example <strong>213245</strong> should be formatted as <strong>213 245,00</strong></p>
  
  <p>How can I do that? </p>
  
  <pre><code>213245.toFixed(2).toLocaleString(); 
  </code></pre>
  
  <p>gives <strong>213245.00</strong> but it should be <strong>213 245,00</strong></p>
  
  <p>however</p>
  
  <pre><code>213245.toLocaleString()
  </code></pre>
  
  <p>gives <strong>213 245</strong></p>
  
  <p>Fiddling below:</p>
  
  <pre><code>var out, input;
  input = 213245;
  
  // TEST 1
  out = input.toFixed(2);   
  console.log(out); // 213245.00
  out = out.toLocaleString();
  console.log(out); // 213245.00
  
  // TEST 2
  out = input.toLocaleString();
  console.log(out); // 213 245
  </code></pre>
  
  <p><a href="https://jsfiddle.net/rootnode/8p2vad8u/7/" rel="noreferrer">https://jsfiddle.net/rootnode/8p2vad8u/7/</a></p>