Amount
A number or a sum of money formatted for the current locale.
Basic
A number, and the same number as money. The currency symbol is muted.
Formats
format sets the digits: 1.0-2 (default), 1.2-2, 1.0-0, 1.2-4 for small prices.
1.0-2$1,234.5 1.2-2$1,234.50 1.0-0$1,235 1.2-4$0.0025
Currency display
currencyDisplay: narrowSymbol (default), symbol, code or name.
Compact
notation="compact" shortens large numbers.
Signs
signColor colours gains and losses, showSign adds +.
Empty and zero
No value shows a dash (emptyText); zero is muted. strong makes the number bolder.
Locales
The current tectra locale is used by default; locale sets another one.
en-US€1,234,567.89 de-DE1.234.567,89 € uk-UA1 234 567,89 € fr-FR1 234 567,89 € ja-JP€1,234,567.89
In a table
Amounts line up in a table with tabular digits.
| Order | Total | Change |
|---|---|---|
| #1042 | ||
| #1043 | ||
| #1044 |
Design tokens
dt changes the look of one amount.