Appearance
@swapped/connect-sdk / core / formatAmountForInput
Function: formatAmountForInput()
formatAmountForInput(
value,maxDecimals?):string
Defined in: src/modules/amount-input/amount-input.utils.ts:206
Format a number as a plain input string (no thousand separators / currency symbols). Scientific values are expanded (1e-7 → 0.0000001) so the sanitizer can round-trip them. Used by setToMin and clamping helpers.
Parameters
value
number
maxDecimals?
number
Returns
string