public function mul(Decimal $b, int $scale = null): Decimal
    {
        self::paramsValidation($b, $scale);

        if ($b->isZero()) {
            return DecimalConstants::Zero();
        }

        return self::fromString(
            \bcmul($this->value, $b->value, $this->scale + $b->scale),
            $scale
        );
    }
public function mul(Decimal $b, int $scale = null): Decimal
    {
        self::paramsValidation($b, $scale);

        if ($b->isZero()) {
            return DecimalConstants::Zero();
        }

        return self::fromString(
            \bcmul($this->value, $b->value, $this->scale + $b->scale),
            $scale
        );
    }
public function mul ( Decimal $ b , int $ scale = null ) : Decimal { self :: paramsValidation ( $ b , $ scale ) ; if ( $ b -> isZero ( ) ) { return DecimalConstants :: Zero ( ) ; } return self :: fromString ( \ bcmul ( $ this -> value , $ b -> value , $ this -> scale + $ b -> scale ) , $ scale ) ; }
Multiplies two BigNumber objects
@param  Decimal $b
@param  integer $scale
@return Decimal
Multiplies two BigNumber objects