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

public static

Signature

public static function compareStr(string $a, string $b): int

Parameters

Name Type Default Description
$a string required Documentation missing
$b string required Documentation missing

Returns

int

Documentation

High-performance static comparison of decimal strings

Compares two decimal string values without object allocation. Uses bccomp when available, pure PHP fallback otherwise.

Source

src/Util/Math/Decimal.php:537-580