@tempots/std
biGcd() function
Calculates the greatest common divisor (GCD) of two BigInt numbers.
Signature:
biGcd: (x: bigint, y: bigint) => bigint
Parameters
Parameter |
Type |
Description |
---|---|---|
x |
bigint |
The first BigInt number. |
y |
bigint |
The second BigInt number. |
Returns: bigint
The GCD of x
and y
.