Skip to main content
Version: v24

IPriceFormatter

Interface

Specific formatter for numbers

Methods

format

Price Formatter

Signature

format(price: number, signPositive?: boolean, tailSize?: number, signNegative?: boolean, useRtlFormat?: boolean, cutFractionalByPrecision?: boolean) => string

Parameters

NameTypeDescription
pricenumberprice
signPositive?boolean-
tailSize?number-
signNegative?boolean-
useRtlFormat?boolean-
cutFractionalByPrecision?boolean-

Returns

formatted price

string

Overrides

ISymbolValueFormatter.format