public function log10(int $scale = null): Decimal
    {
        if ($this->isNegative()) {
            throw new \DomainException(
                "Decimal can't handle logarithms of negative numbers (it's only for real numbers)."
            );
        } elseif ($this->isZero()) {
            throw new \DomainException(
                "Decimal can't represent infinite numbers."
            );
        }

        return self::fromString(
            self::innerLog10($this->value, $this->scale, $scale !== null ? $scale+1 : $this->scale+1),
            $scale
        );
    }
public function log10(int $scale = null): Decimal
    {
        if ($this->isNegative()) {
            throw new \DomainException(
                "Decimal can't handle logarithms of negative numbers (it's only for real numbers)."
            );
        } elseif ($this->isZero()) {
            throw new \DomainException(
                "Decimal can't represent infinite numbers."
            );
        }

        return self::fromString(
            self::innerLog10($this->value, $this->scale, $scale !== null ? $scale+1 : $this->scale+1),
            $scale
        );
    }
public function log10 ( int $ scale = null ) : Decimal { if ( $ this -> isNegative ( ) ) { throw new \ DomainException ( "Decimal can't handle logarithms of negative numbers (it's only for real numbers)." ) ; } elseif ( $ this -> isZero ( ) ) { throw new \ DomainException ( "Decimal can't represent infinite numbers." ) ; } return self :: fromString ( self :: innerLog10 ( $ this -> value , $ this -> scale , $ scale !== null ? $ scale + 1 : $ this -> scale + 1 ) , $ scale ) ; }
Returns the object's logarithm in base 10
@param  integer $scale
@return Decimal
Returns the object s logarithm in base 10