multiplyBigIntByNumber()
multiplyBigIntByNumber()
function multiplyBigIntByNumber(
x,
y,
scaleDigits?): bigint;Defined in: utils.ts:69
Multiply a bigint by a JS number using string-based fixed-point to avoid overflow/precision issues. Returns floor(x * y).
Parameters
| Parameter | Type | Default value |
|---|---|---|
x | bigint | undefined |
y | number | undefined |
scaleDigits | number | 9 |
Returns
bigint