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