bigintFromDecimals
Function: bigintFromDecimals()
bigintFromDecimals(
value,decimals,rounded):bigint
Convert number to bigint with decimals
Parameters
value
string
The string representation of the value.
decimals
number
The number of decimal places to consider.
rounded
boolean = true
Optional boolean indicating whether the value should be rounded. Defaults to true.
Returns
bigint
converted bigint value
Defined in
Last updated