title: Modifying the NumberFormat returned by NumberFormat.getCurrencyInstance()
body: <p>Am having an issue with formatting currencies in Java. I am trying to format a number to be printed as currency, with all the decimal points aligned:</p>
  
  <pre><code>£  1.23
  £ 12.34
  £123.45
  </code></pre>
  
  <p>Calling <code>NumberFormat.getCurrencyInstance().format(n)</code> returns a formatted string, but all the numbers are left-aligned, producing output like this:</p>
  
  <pre><code>£1.23
  £12.34
  £123.45
  </code></pre>
  
  <p>Ugly. I have read <a href="https://stackoverflow.com/questions/4182092/numberformat-problem">this post</a> which presents a solution using a <code>DecimalFormat</code>, and as a stopgap I'm formatting my number using a DecimalFormat and prepending the currency symbol later, but I was wondering if anyone was aware of a neater way of accomplishing the same thing?</p>
  
  <p>Hope that's all clear, thanks in advance for your help!</p>