bigIntMultiply

1function bigIntMultiply(base, multiplier, roundingMode): bigint;

Defined in: aa-sdk/core/src/utils/bigint.ts:79

Given a bigint and a number (which can be a float), returns the bigint value. Note: this function has loss and will round down to the nearest integer.

Parameters

ParameterTypeDefault valueDescription

base

BigNumberish

undefined

the number to be multiplied

multiplier

Multiplier

undefined

the amount to multiply by

roundingMode

RoundingMode

RoundingMode.ROUND_UP

the rounding mode to use when calculating the percent. defaults to ROUND_UP

Returns

bigint

the bigint value of the multiplication with the number rounded by the rounding mode