Appearance
@swapped/connect-sdk / format / FormatCurrencyAmountOptions
Type Alias: FormatCurrencyAmountOptions
FormatCurrencyAmountOptions =
object
Defined in: src/format/formatCurrencyAmount.ts:3
Properties
firstNonZeroDecimal?
optionalfirstNonZeroDecimal?:boolean
Defined in: src/format/formatCurrencyAmount.ts:10
Expand decimals past 2 until the first non-zero digit is visible (e.g. 0.0001 instead of 0.00).
format?
optionalformat?:"js-number"|"pretty"
Defined in: src/format/formatCurrencyAmount.ts:16
Output style:
'pretty'(default) — thousand separators'js-number'— no separators
removeTrailingZeros?
optionalremoveTrailingZeros?:boolean
Defined in: src/format/formatCurrencyAmount.ts:5
Strip trailing zeros after the decimal (e.g. 1.50 → 1.5).