public function quotient($that) : BigInteger
    {
        $that = BigInteger::of($that);

        if ($that->value === '1') {
            return $this;
        }

        if ($that->value === '0') {
            throw DivisionByZeroException::divisionByZero();
        }

        $quotient = Calculator::get()->divQ($this->value, $that->value);

        return new BigInteger($quotient);
    }
public function quotient($that) : BigInteger
    {
        $that = BigInteger::of($that);

        if ($that->value === '1') {
            return $this;
        }

        if ($that->value === '0') {
            throw DivisionByZeroException::divisionByZero();
        }

        $quotient = Calculator::get()->divQ($this->value, $that->value);

        return new BigInteger($quotient);
    }
public function quotient ( $ that ) : BigInteger { $ that = BigInteger :: of ( $ that ) ; if ( $ that -> value === '1' ) { return $ this ; } if ( $ that -> value === '0' ) { throw DivisionByZeroException :: divisionByZero ( ) ; } $ quotient = Calculator :: get ( ) -> divQ ( $ this -> value , $ that -> value ) ; return new BigInteger ( $ quotient ) ; }
Returns the quotient of the division of this number by the given one.

@param BigNumber|number|string $that The divisor. Must be convertible to a BigInteger.

@return BigInteger

@throws DivisionByZeroException If the divisor is zero.
Returns the quotient of the division of this number by the given one .