diff --git a/lib/Digitick/Sepa/TransferInformation/BaseTransferInformation.php b/lib/Digitick/Sepa/TransferInformation/BaseTransferInformation.php index 5c14f98..111b685 100644 --- a/lib/Digitick/Sepa/TransferInformation/BaseTransferInformation.php +++ b/lib/Digitick/Sepa/TransferInformation/BaseTransferInformation.php @@ -88,8 +88,7 @@ public function __construct($amount, $iban, $name) if(!function_exists('bcscale')) { throw new InvalidArgumentException('Using floats for amount is only possible with bcmath enabled'); } - bcscale(2); - $amount = (integer)bcmul($amount, 100); + $amount = (int)round($amount * 100); } $this->transferAmount = $amount; $this->iban = $iban; @@ -209,4 +208,4 @@ public function getRemittanceInformation() return $this->remittanceInformation; } -} \ No newline at end of file +}