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

public

Signature

public function sqrt(?int $scale = NULL): self

Parameters

Name Type Default Description
$scale ?int NULL Documentation missing

Returns

self

Documentation

Square root using Newton-Raphson iteration

Computes √x to the specified precision (scale).

Source

src/Util/Math/Decimal.php:253-289