zendframework/zf2 — pull request #6852 by Gawel1 (2014-11-07 11:02:04+00:00)
Title: Fix problem of decimals always visible

Apply comment visible in http://php.net/manual/en/numberformatter.formatcurrency.php :

When you want to format currency's without sub units and the currency is not the one used by the given locale you need to set the currency code before as TextAttribute _BEFORE_ setting the NumberFormatter::FRACTION_DIGITS

setTextAttribute(NumberFormatter::CURRENCY_CODE, 'EUR');
$fmt->setAttribute(NumberFormatter::FRACTION_DIGITS, 0);
$fmt->formatCurrency(100, 'EUR');
?>