title: How do I find the decimal separator for current locale in Javascript
body: <p>In my application there are several places where the user is expected to enter a monetary value. The application supports storing these monetary values in multiple currencies as well as localization.</p>
  
  <p>I'm using the <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NumberFormat" rel="noreferrer">Intl.NumberFormat</a> object in Javascript to format a number into any currency and locale I need, but there's no way to unformat the number using that.</p>
  
  <p>All of the libraries I've found so far require you to provide the decimal and thousands separators in order for the formatting/unformatting functions to work. However, I need a way to find what the decimal and thousands separators are in the first place so I can't use those.</p>
  
  <p>How can I reliably get the decimal separator for the current locale?</p>