title: Formatting currency using numberFormatter
body: <p>I ran into some problems using the php NumberFormatter class. I want rounded digits to be displayed without any decimals, and digits which has decimals to be rounded with 2 decimals. i.e.</p>
  
  <pre><code>$fmt = new NumberFormatter('nl', NumberFormatter::CURRENCY);
  $fmt-&gt;setAttribute(\NumberFormatter::MIN_FRACTION_DIGITS, 0);
  $fmt-&gt;setAttribute(\NumberFormatter::MAX_FRACTION_DIGITS, 2);
  
  var_dump($fmt-&gt;formatCurrency(15.15, 'EUR')); //Outputs € 15,15
  var_dump($fmt-&gt;formatCurrency(15, 'EUR')); //Outputs € 15,00
  </code></pre>
  
  <p>As you can see the last dump is outputting <code>15,00</code> but I'm expecting <code>15</code> here.
  Whenever I use the "full" locale <code>nl_NL</code> instead of <code>nl</code> the formatter behaves as expected, but I'm unable to use that because I only have the language available in my locale.</p>
  
  <pre><code>$fmt = new NumberFormatter('nl_NL', NumberFormatter::CURRENCY);
  $fmt-&gt;setAttribute(\NumberFormatter::MIN_FRACTION_DIGITS, 0);
  $fmt-&gt;setAttribute(\NumberFormatter::MAX_FRACTION_DIGITS, 2);
  
  var_dump($fmt-&gt;formatCurrency(15.15, 'EUR')); //Outputs € 15,15
  var_dump($fmt-&gt;formatCurrency(15, 'EUR')); //Output € 15
  </code></pre>
  
  <p>This seems like a bug in the NumberFormatter but I really have no clue how to fix it or figure out some other workaround. I'd be very grateful for any help.</p>