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

public

Signature

public function divide(mini\Util\Math\BigInt|self|string|int|float $other, ?int $scale = NULL): self

Parameters

Name Type Default Description
$other mini\Util\Math\BigInt|self|string|int|float required Documentation missing
$scale ?int NULL Documentation missing

Returns

self

Documentation

Divide with specified result scale

If scale is not specified, uses max(this.scale, other.scale) + 6 to provide reasonable precision for most cases.

Source

src/Util/Math/Decimal.php:181-206