mini\Util\Math\Decimal::pow() Method

public

Signature

public function pow(self|string|int $exponent, ?int $scale = NULL): self

Parameters

Name Type Default Description
$exponent self|string|int required Documentation missing
$scale ?int NULL Documentation missing

Returns

self

Documentation

Power with arbitrary exponent: x^y = exp(y * ln(x))

For integer exponents, uses repeated multiplication (faster). For fractional exponents, uses exp(y * ln(x)).

Source

src/Util/Math/Decimal.php:445-472