private function getFractionDigitCount($count)
    {
        if ($this->precision > 0) {
            return $this->precision;
        }

        $target = gmp_init($this->target->getRadix());
        $maxFraction = gmp_pow(gmp_init($this->source->getRadix()), $count);
        $digits = 1;

        while (gmp_cmp(gmp_pow($target, $digits), $maxFraction) < 0) {
            $digits++;
        }

        return $digits - $this->precision;
    }
private function getFractionDigitCount($count)
    {
        if ($this->precision > 0) {
            return $this->precision;
        }

        $target = gmp_init($this->target->getRadix());
        $maxFraction = gmp_pow(gmp_init($this->source->getRadix()), $count);
        $digits = 1;

        while (gmp_cmp(gmp_pow($target, $digits), $maxFraction) < 0) {
            $digits++;
        }

        return $digits - $this->precision;
    }
private function getFractionDigitCount ( $ count ) { if ( $ this -> precision > 0 ) { return $ this -> precision ; } $ target = gmp_init ( $ this -> target -> getRadix ( ) ) ; $ maxFraction = gmp_pow ( gmp_init ( $ this -> source -> getRadix ( ) ) , $ count ) ; $ digits = 1 ; while ( gmp_cmp ( gmp_pow ( $ target , $ digits ) , $ maxFraction ) < 0 ) { $ digits ++ ; } return $ digits - $ this -> precision ; }
Determines the number of digits required in the target base.
@param int $count Number of digits in the original number
@return int Number of digits required in the target base
Determines the number of digits required in the target base .