Skip to content

Commit 29b44ab

Browse files
Merge branch '4.4' into 5.1
* 4.4: add mising sr (latn & cyrl) translations [Cache] fix ProxyAdapter not persisting items with infinite expiration [HttpClient] fail properly when the server replies with HTTP/0.9 Fix CS [Cache] Limit cache version character range [DI] dump OS-indepent paths in the compiled container allow consumers to mock all methods
2 parents 2834d3b + 93c5fdc commit 29b44ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

NumberFormatter/NumberFormatter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,7 @@ private function roundCurrency(float $value, string $currency): float
691691

692692
// Swiss rounding
693693
if (0 < $roundingIncrement && 0 < $fractionDigits) {
694-
$roundingFactor = $roundingIncrement / pow(10, $fractionDigits);
694+
$roundingFactor = $roundingIncrement / 10 ** $fractionDigits;
695695
$value = round($value / $roundingFactor) * $roundingFactor;
696696
}
697697

@@ -713,7 +713,7 @@ private function round($value, int $precision)
713713
if (isset(self::$phpRoundingMap[$roundingModeAttribute])) {
714714
$value = round($value, $precision, self::$phpRoundingMap[$roundingModeAttribute]);
715715
} elseif (isset(self::$customRoundingList[$roundingModeAttribute])) {
716-
$roundingCoef = pow(10, $precision);
716+
$roundingCoef = 10 ** $precision;
717717
$value *= $roundingCoef;
718718
$value = (float) (string) $value;
719719

0 commit comments

Comments
 (0)