| Default |
${formatNumber(value)} |
|
| Currency symbol |
${formatNumber(value, {
style: 'currency',
currencyDisplay: 'symbol',
currency: 'EUR',
})}
|
formatNumber({ style: 'currency', currencyDisplay: 'symbol', currency: 'EUR' })
|
| Currency code |
${formatNumber(value, {
style: 'currency',
currencyDisplay: 'code',
currency: 'EUR',
})}
|
formatNumber({ style: 'currency', currencyDisplay: 'code', currency: 'EUR' })
|
| Locale |
${formatNumber(value, { locale: 'nl-NL' })} |
formatNumber({ locale: 'nl-NL' }) |
| No decimals |
${formatNumber(value, {
minimumFractionDigits: 0,
maximumFractionDigits: 0,
})}
|
formatNumber({ minimumFractionDigits: 0, maximumFractionDigits: 0, })
|