Fix arrotondamenti con Intl
This commit is contained in:
parent
0f5622d10e
commit
82a1614e5c
|
@ -40,6 +40,8 @@ class Formatter
|
|||
{
|
||||
if (class_exists('NumberFormatter')) {
|
||||
$this->numberFormatter = new NumberFormatter($locale, NumberFormatter::DECIMAL);
|
||||
|
||||
$this->numberFormatter->setAttribute(NumberFormatter::ROUNDING_MODE, NumberFormatter::ROUND_HALFUP);
|
||||
} else {
|
||||
$this->numberFormatter = $number;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue