title: How to determine where to place the currency symbol when formatting a number?
body: <p>I am not sure if the same question is asked by any other. I have not seen this question in stackoverflow so far, hence posting the same. </p>
  
  <p>I have a requirement where I need to format the numbers based on the currency. </p>
  
  <p><a href="https://i.stack.imgur.com/VORbM.png" rel="noreferrer"><img src="https://i.stack.imgur.com/VORbM.png" alt="enter image description here"></a></p>
  
  <p>Let me explain the above table to give you more context of my question. For UnitedStates, numbers are formatted as <strong>USD976,543.21</strong>, here the currency symbol is USD which is placed in the front before numbers. This is little different for fr-FR locale, here <strong>€</strong> symbol is placed after the digits. </p>
  
  <p>All my formatting is happening in the front end and not the backend. I am giving a format in the form of # to the FE, then our home grown code formats the digits in that format. Example, for United states, I am supplying USD###,###,###.####. Here, I need to let the front end know the below information so that front end formats the same in a prompt manner.
  <strong>My question is:</strong>
  Is there any way to get the below information in the backend:</p>
  
  <ol>
  <li>Where to place the currency, start of the number or towards ending?</li>
  <li>Is there any space between number and symbol? Look at USD976,543.21 and 976 543,21 € . There is space between currency symbol and number for EURO but not for USD. </li>
  </ol>
  
  <p>I am using java.util.Currency.</p>