Convert an ERC-20 display amount to base units or turn a raw balance back into decimal notation.
A display amount is multiplied by 10^decimals and represented as an integer; the reverse direction inserts the decimal point that many places from the right. BigInt-backed arithmetic preserves exact token units instead of rounding through binary floating point.
Value: 12.5 Decimals: 6 Direction: humanToRaw
Human amount: 12.5 Raw amount: 12500000
Wallets format balanceOf values, approve forms prepare integer calldata, and indexers render Transfer events.