We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f1c3f1 commit a4a4ebeCopy full SHA for a4a4ebe
src/price/ProgressivePrice.php
@@ -105,8 +105,8 @@ public function calculateSum(QuantityInterface $quantity): ?Money
105
$price = $threshold->price();
106
107
$chargedAmount = $price->money()
108
- ->multiply((string)$billedUsage->getQuantity())
109
- ->divide((string)($price->multiplier()));
+ ->multiply((string)(sprintf('%.14F', $billedUsage->getQuantity())))
+ ->divide((string)(sprintf('%.14F', $price->multiplier())));
110
111
$this->calculationTraces[] = new ProgressivePriceCalculationTrace(
112
$threshold, $billedUsage, $chargedAmount
0 commit comments