Skip to content

Commit 93c5fdc

Browse files
committed
Fix CS
1 parent cf0e5c9 commit 93c5fdc

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
@@ -699,7 +699,7 @@ private function roundCurrency(float $value, string $currency): float
699699

700700
// Swiss rounding
701701
if (0 < $roundingIncrement && 0 < $fractionDigits) {
702-
$roundingFactor = $roundingIncrement / pow(10, $fractionDigits);
702+
$roundingFactor = $roundingIncrement / 10 ** $fractionDigits;
703703
$value = round($value / $roundingFactor) * $roundingFactor;
704704
}
705705

@@ -721,7 +721,7 @@ private function round($value, int $precision)
721721
if (isset(self::$phpRoundingMap[$roundingModeAttribute])) {
722722
$value = round($value, $precision, self::$phpRoundingMap[$roundingModeAttribute]);
723723
} elseif (isset(self::$customRoundingList[$roundingModeAttribute])) {
724-
$roundingCoef = pow(10, $precision);
724+
$roundingCoef = 10 ** $precision;
725725
$value *= $roundingCoef;
726726
$value = (float) (string) $value;
727727

0 commit comments

Comments
 (0)