fix: retain sig figs in localized nums (#3280)
This commit is contained in:
parent
69ed7015ab
commit
02a77254c7
@ -15,6 +15,7 @@ export default function formatLocaleNumber({ number, locale, sigFigs, options =
|
||||
} else {
|
||||
localeArg = [locale, DEFAULT_LOCALE]
|
||||
}
|
||||
options.maximumSignificantDigits = options.maximumSignificantDigits || sigFigs
|
||||
if (typeof number === 'number') {
|
||||
return number.toLocaleString(localeArg, options)
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user