src/Model/Payment.php
protected function createMoneyFromFloat(string $amount = '0.00') : ?Money
    {
        $amount = static::priceStringToInt((string)$amount);
        return $this->createMoney($amount);
    }
protected function createMoneyFromFloat(string $amount = '0.00') : ?Money
    {
        $amount = static::priceStringToInt((string)$amount);
        return $this->createMoney($amount);
    }
A helper method for creating a Money object from a float based on the shared currency

The float can be any format, i.e. 1.50 or 1,50

@param string $amount
@return Money|null