Multiply an integer

@param int $int

@return Rational
15093
private function multiplyInt(int $int): Rational
    {
        $w = $this->whole * $int;
        $n = $this->numerator * $int;
        return new Rational($w, $n, $this->denominator);
    }
883522
private function int4Type6($Int)
    {
        if ($Int === 1) {
            return 0;
        }
        $Tail2 = $Int % 100;
        if ($Tail2 > 10 && $Tail2 < 20) {
            return 2;
        }
        if ($Int === 0 || ($Tail2 > 1 && $Tail2 < 11)) {
            return 3;
        }
        return 1;
    }
378541
protected function multiplyScalar($scalar) : self
    {
        if (!is_int($scalar) and !is_float($scalar)) {
            throw new InvalidArgumentException('Scalar must be an integer'
                . ' or float, ' . gettype($scalar) . ' found.');
        }

        if ($scalar == 0) {
            return self::zeros(...$this->shape());
        }

        $b = [];

        foreach ($this->a as $row) {
            $temp = [];

            foreach ($row as $value) {
                $temp[] = $value * $scalar;
            }

            $b[] = $temp;
        }

        return self::quick($b);
    }
1131539
public function multiply($number)
    {
        self::mustBeNumeric($number, 'Value to multiply');
        
        $number = is_object($number) ? $number->value : $number;
        
        return new self($this->value * $number);
    }
293613
public function multiply($factor, $roundingMode = PHP_ROUND_HALF_UP)
    {
        if (!in_array($roundingMode, self::$roundingModes)) {
            throw new InvalidArgumentException(
                '$roundingMode ' . \Yii::t('skeeks/money', 'must be a valid rounding mode') . ' (PHP_ROUND_*)'
            );
        }

        return $this->newMoney(
            $this->castToFloat(
                round($factor * $this->amount, 0, $roundingMode)
            )
        );
    }
62014
public function writeInteger($int)
    {
        if (($int & 0xffffff80) == 0) {
            $this->_stream->writeByte($int & 0x7f);
            return $this;
        }

        if (($int & 0xffffc000) == 0 ) {
            $this->_stream->writeByte(($int >> 7 ) | 0x80);
            $this->_stream->writeByte($int & 0x7f);
            return $this;
        }

        if (($int & 0xffe00000) == 0) {
            $this->_stream->writeByte(($int >> 14 ) | 0x80);
            $this->_stream->writeByte(($int >> 7 ) | 0x80);
            $this->_stream->writeByte($int & 0x7f);
            return $this;
        }

        $this->_stream->writeByte(($int >> 22 ) | 0x80);
        $this->_stream->writeByte(($int >> 15 ) | 0x80);
        $this->_stream->writeByte(($int >> 8 ) | 0x80);
        $this->_stream->writeByte($int & 0xff);
        return $this;
    }
76173
public static function sub($int1, $int2)
    {
        if (!static::is($int1) || !static::is($int2)) {
            throw new \InvalidArgumentException(
                "The \$int1 and \$int2 parameters must be of type int (or string representing a big int)."
            );
        }

        if (is_int($int1) && is_int($int2)) {
            return ($int1 - $int2);
        } elseif (function_exists('bcsub')) {
            return bcsub($int1, $int2);
        }

        throw new \RuntimeException("The BCMath library is not available."); // @codeCoverageIgnore
    }
902670
protected function pack_int($int) {
        if (PHP_INT_SIZE === 8) {
            $left = 0xffffffff00000000;
            $right = 0x00000000ffffffff;
            $l = ($int & $left) >>32;
            $r = $int & $right;

            return pack('NN', $l, $r);
        } else {
            return pack('NN', 0, $int);
        }
    }
253165
public function dividedBy($that) : RationalMoney
    {
        $amount = $this->amount->dividedBy($that);

        return new self($amount, $this->currency);
    }
994426
private function int3Type4($Int)
    {
        $Tail = $Int % 10;
        $Tail2 = $Int % 100;
        if ($Tail === 1 && $Tail2 !== 11) {
            return 0;
        }
        return ($Tail >= 2 && $Tail <= 4 && ($Tail2 < 10 || $Tail2 >= 20)) ? 1 : 2;
    }
1260710
public static function bytesSizeInt($int)
    {
        $nbytes = 0;

        if ($int > 0xE) {
            $nbytes += 2; // 2 size-bytes
        }
        if ($int > 0xFF) {
            $nbytes += 1; // 3 size-bytes
        }
        if ($int > 0xFFFF) {
            $nbytes += 2; // 5 size-bytes
        }

        return $nbytes;
    }
1098365
public function multiply(array $e):Polynomial{
		$n = \array_fill(0, \count($this->num) + \count($e) - 1, 0);

		foreach($this->num as $i => $vi){
			$vi = $this->glog($vi);

			foreach($e as $j => $vj){
				$n[$i + $j] ^= $this->gexp($vi + $this->glog($vj));
			}

		}

		$this->setNum($n);

		return $this;
	}
629874
public static function limitInteger($int, $min = null, $max = null)
    {
        $int = (int) $int;

        if ($min !== null && $int < $min) {
            $int = $min;
        }

        if ($max !== null && $int > $max) {
            $int = $max;
        }

        return (int) $int;
    }
349021
public function toHex($integer)
    {
        if (!$integer instanceof BigNumber) {
            $integer = new BigNumber($integer);
        }

        return BigNumber::convertFromBase10($integer, 16);
    }
355858
public function multiply(Fraction $fraction)
    {
        $numerator = $this->getNumerator() * $fraction->getNumerator();
        $denominator = $this->getDenominator() * $fraction->getDenominator();

        return new static($numerator, $denominator);
    }
744584
public function add($r): Rational
    {
        if (is_int($r)) {
            return $this->addInt($r);
        } elseif ($r instanceof Rational) {
            return $this->addRational($r);
        } else {
            throw new Exception\IncorrectTypeException('Argument must be an integer or RationalNumber');
        }
    }
210033
public Rational multiply(Rational other) {
    return new Rational(
        numerator.multiply(other.numerator),
        denominator.multiply(other.denominator));
  }