unitsToDecimal
unitsToDecimal(
units,decimals):string
Defined in: protocol-swap2-layerswap/src/api.ts:121
Base units → an exact decimal literal (“1.5”, “0.000001”, “25”); never exponent notation.
Parameters
Section titled “Parameters”bigint
decimals
Section titled “decimals”number
Returns
Section titled “Returns”string