Format Number
<gstock-format-number>
|
GstockFormatNumber
API
Properties
| Name | Description | Reflects | Type | Default |
|---|---|---|---|---|
value
|
The number to format. |
number
|
0
|
|
type
|
The formatting style to use. |
'currency' | 'decimal' | 'percent'
|
'decimal'
|
|
noGrouping
no-grouping
|
Turns off grouping separators. |
boolean
|
false
|
|
currency
|
The ISO 4217 currency code to use when formatting. |
string
|
'USD'
|
|
currencyDisplay
currency-display
|
How to display the currency. |
'symbol' | 'narrowSymbol' | 'code' | 'name'
|
'symbol'
|
|
minimumIntegerDigits
minimum-integer-digits
|
The minimum number of integer digits to use. Possible values are 1–21. |
number
|
-
|
|
minimumFractionDigits
minimum-fraction-digits
|
The minimum number of fraction digits to use. Possible values are 0–20. |
number
|
-
|
|
maximumFractionDigits
maximum-fraction-digits
|
The maximum number of fraction digits to use. Possible values are 0–0. |
number
|
-
|
|
minimumSignificantDigits
minimum-significant-digits
|
The minimum number of significant digits to use. Possible values are 1–21. |
number
|
-
|
|
maximumSignificantDigits
maximum-significant-digits
|
The maximum number of significant digits to use,. Possible values are 1–21. |
number
|
-
|
|
numberFormat
number-format
|
Number format to use when parsing and formatting number. |
|
'#,###.##' | '#.###,##' | '# ###.##' | '# ###,##'
|
-
|
updateComplete
|
A read-only promise that resolves when the component has finished updating. |
Learn more about attributes and properties .