@tempots/std
biCompare() function
Compares two BigInt values and returns a number indicating their relative order.
Signature:
biCompare: (x: bigint, y: bigint) => number
Parameters
Parameter |
Type |
Description |
---|---|---|
x |
bigint |
The first BigInt value to compare. |
y |
bigint |
The second BigInt value to compare. |
Returns: number
A negative number if x
is less than y
, a positive number if x
is greater than y
,
or zero if x
is equal to y
.