Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/price/ProgressivePrice.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ public function calculateSum(QuantityInterface $quantity): ?Money
$price = $threshold->price();

$chargedAmount = $price->money()
->multiply((string)$billedUsage->getQuantity())
->divide((string)($price->multiplier()));
->multiply((string)(sprintf('%.14F', $billedUsage->getQuantity())))
->divide((string)(sprintf('%.14F', $price->multiplier())));
Comment on lines +108 to +109
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


$this->calculationTraces[] = new ProgressivePriceCalculationTrace(
$threshold, $billedUsage, $chargedAmount
Expand Down
Loading