Multiplies a string representation of a number by a given exponent of base 10 (10exponent).
This code snippet is taken from the Viem SDK.
import { parseUnits } from 'viem'parseUnits('420', 9)// 420000000000n Copy
import { parseUnits } from 'viem'parseUnits('420', 9)// 420000000000n
Multiplies a string representation of a number by a given exponent of base 10 (10exponent).
This code snippet is taken from the Viem SDK.