Multiplies str by 10 ** decimals without losing precision while converting to a bigint. Truncating the result.
str
10 ** decimals
The decimal value represented as a string
The amount of places to move the decimal point to the right by
The result as a bigint, or null if the input wasn't a valid number.
Multiplies
str
by10 ** decimals
without losing precision while converting to a bigint. Truncating the result.