Interface: INumberFormatter
Broker.INumberFormatter
Specific formatter for number
Hierarchy
- 
IFormatter<number>↳
INumberFormatter 
Methods
format
▸ format(value?, options?): string
Formatter for a number
Parameters
| Name | Type | 
|---|---|
value? | number | 
options? | NumberFormatterFormatOptions | 
Returns
string
Overrides
formatChange
▸ formatChange(currentPrice, prevPrice, options?): string
Formatter for a price change
Parameters
| Name | Type | Description | 
|---|---|---|
currentPrice | number | current price | 
prevPrice | number | previous price | 
options? | NumberFormatterFormatOptions | format options | 
Returns
string
parse
▸ parse(value, options?): ErrorFormatterParseResult | SuccessFormatterParseResult<number>
Check if the input value satisfies the logic and return either an error or the result of the parsing
Parameters
| Name | Type | 
|---|---|
value | string | 
options? | FormatterParseOptions | 
Returns
ErrorFormatterParseResult | SuccessFormatterParseResult<number>