mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-17 03:51:06 +01:00
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…
x
Reference in New Issue
Block a user