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

        if ($that->isZero()) {
            throw DivisionByZeroException::divisionByZero();
        }

        $p = $this->valueWithMinScale($that->scale);
        $q = $that->valueWithMinScale($this->scale);

        $quotient = Calculator::get()->divQ($p, $q);

        return new BigDecimal($quotient, 0);
    }
public function quotient($that) : BigDecimal
    {
        $that = BigDecimal::of($that);

        if ($that->isZero()) {
            throw DivisionByZeroException::divisionByZero();
        }

        $p = $this->valueWithMinScale($that->scale);
        $q = $that->valueWithMinScale($this->scale);

        $quotient = Calculator::get()->divQ($p, $q);

        return new BigDecimal($quotient, 0);
    }
public function quotient ( $ that ) : BigDecimal { $ that = BigDecimal :: of ( $ that ) ; if ( $ that -> isZero ( ) ) { throw DivisionByZeroException :: divisionByZero ( ) ; } $ p = $ this -> valueWithMinScale ( $ that -> scale ) ; $ q = $ that -> valueWithMinScale ( $ this -> scale ) ; $ quotient = Calculator :: get ( ) -> divQ ( $ p , $ q ) ; return new BigDecimal ( $ quotient , 0 ) ; }
Returns the quotient of the division of this number by this given one.

The quotient has a scale of `0`.

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

@return BigDecimal The quotient.

@throws MathException If the divisor is not a valid decimal number, or is zero.
Returns the quotient of the division of this number by this given one .