title: Javascript number.toLocaleString currency without currency sign
body: <p>Suppose we have</p>
  <pre><code>var number = 123456.789;
  </code></pre>
  <p>What I want is to display this number in locale 'de-DE' as</p>
  <pre><code>123.456,79
  </code></pre>
  <p>in locale 'ja-JP' as</p>
  <pre><code>123,457
  </code></pre>
  <p>in locale 'en-US' as</p>
  <pre><code>123,456.79
  </code></pre>
  <p>and so on according to user's locale. The problem is that Javascript's <code>number.toLocaleString</code> requires to specify currency sign and I can't find out how to tell to not display it at all.</p>
  <p>What I tried:</p>
  <pre><code>number.toLocaleString('de-DE', { style: 'currency' }));
  // TypeError: undefined currency in NumberFormat() with currency style
  
  number.toLocaleString('de-DE', { style: 'currency', currency: '' }));
  // RangeError: invalid currency code in NumberFormat():
  
  number.toLocaleString('de-DE', { style: 'currency', currency: false }));
  // RangeError: invalid currency code in NumberFormat(): false
  
  number.toLocaleString('de-DE', { style: 'currency', currency: null }));
  // RangeError: invalid currency code in NumberFormat(): null
  </code></pre>
  <p>The function also has option <code>currencyDisplay</code>. I tried the same values as above with <code>currency</code> option but with same result.</p>
  <hr />
  <p><strong>UPDATE</strong> (2020-11-25)</p>
  <p>A few people pointed to <code>.resolvedOptions()</code>. It basically solves the question:</p>
  <pre><code>const currencyFractionDigits = new Intl.NumberFormat('de-DE', {
      style: 'currency',
      currency: 'EUR',
  }).resolvedOptions().maximumFractionDigits;
  
  const value = (12345.678).toLocaleString('de-DE', {
      maximumFractionDigits: currencyFractionDigits 
  });
  
  console.log(value); // prints 12.345,68
  </code></pre>
  <p>Thank you.</p>