/** * Raises to the power of the other value. * * @param Decimal $other * @return Decimal */ public function pow(Decimal $other) { $result = bcpow($this->value, $other->__toString(), self::getScale()); return self::valueOf($result); }